From c53892aa9015e658f98c6440e416b538efe05363 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 8 Jun 2008 21:15:44 +0000 Subject: * Added compiler pre-processor, #if SPAM to SensorRepeat... so if you really want to see, "[AsyncLSL]: GetSensorList missing localID" and SetSensorEvent, then you can #define SPAM --- .../ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs index 82bd3ac..aaea2ee 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - +//#define SPAM using System; using System.Collections.Generic; using libsecondlife; @@ -70,8 +70,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin public void SetSenseRepeatEvent(uint m_localID, LLUUID m_itemID, string name, LLUUID keyID, int type, double range, double arc, double sec, SceneObjectPart host) { + #if SPAM Console.WriteLine("SetSensorEvent"); - + #endif // Always remove first, in case this is a re-set UnSetSenseRepeaterEvents(m_localID, m_itemID); if (sec == 0) // Disabling timer @@ -161,7 +162,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin Dictionary Obj = null; if (!SenseEvents.TryGetValue(m_localID, out Obj)) { + #if SPAM m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing localID: " + m_localID); + #endif return null; } lock (Obj) @@ -170,7 +173,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin LSL_Types.list SenseList = null; if (!Obj.TryGetValue(m_itemID, out SenseList)) { + #if SPAM m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing itemID: " + m_itemID); + #endif return null; } return SenseList; @@ -185,7 +190,10 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin if (SensePoint == null) { + + #if SPAM //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep (SensePoint == null) for "+ts.itemID.ToString()); + #endif return; } //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep Scan"); @@ -286,8 +294,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin } } } + #if SPAM //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep SenseLock"); - + #endif lock (SenseLock) { // Create object if it doesn't exist -- cgit v1.1