* 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

0.6.0-stable
Teravus Ovares 2008-06-08 21:15:44 +00:00
parent 00769429f0
commit c53892aa90
1 changed files with 12 additions and 3 deletions

View File

@ -24,7 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
//#define SPAM
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using libsecondlife; using libsecondlife;
@ -70,8 +70,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
public void SetSenseRepeatEvent(uint m_localID, LLUUID m_itemID, public void SetSenseRepeatEvent(uint m_localID, LLUUID m_itemID,
string name, LLUUID keyID, int type, double range, double arc, double sec, SceneObjectPart host) string name, LLUUID keyID, int type, double range, double arc, double sec, SceneObjectPart host)
{ {
#if SPAM
Console.WriteLine("SetSensorEvent"); Console.WriteLine("SetSensorEvent");
#endif
// Always remove first, in case this is a re-set // Always remove first, in case this is a re-set
UnSetSenseRepeaterEvents(m_localID, m_itemID); UnSetSenseRepeaterEvents(m_localID, m_itemID);
if (sec == 0) // Disabling timer if (sec == 0) // Disabling timer
@ -161,7 +162,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
Dictionary<LLUUID, LSL_Types.list> Obj = null; Dictionary<LLUUID, LSL_Types.list> Obj = null;
if (!SenseEvents.TryGetValue(m_localID, out Obj)) if (!SenseEvents.TryGetValue(m_localID, out Obj))
{ {
#if SPAM
m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing localID: " + m_localID); m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing localID: " + m_localID);
#endif
return null; return null;
} }
lock (Obj) lock (Obj)
@ -170,7 +173,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
LSL_Types.list SenseList = null; LSL_Types.list SenseList = null;
if (!Obj.TryGetValue(m_itemID, out SenseList)) if (!Obj.TryGetValue(m_itemID, out SenseList))
{ {
#if SPAM
m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing itemID: " + m_itemID); m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing itemID: " + m_itemID);
#endif
return null; return null;
} }
return SenseList; return SenseList;
@ -185,7 +190,10 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
if (SensePoint == null) if (SensePoint == null)
{ {
#if SPAM
//m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep (SensePoint == null) for "+ts.itemID.ToString()); //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep (SensePoint == null) for "+ts.itemID.ToString());
#endif
return; return;
} }
//m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep Scan"); //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"); //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep SenseLock");
#endif
lock (SenseLock) lock (SenseLock)
{ {
// Create object if it doesn't exist // Create object if it doesn't exist