From f47bcb0f98c6272caed91a436ad714ac70c43cfe Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 18 Feb 2008 14:17:09 +0000 Subject: bring back some script engine debugging, hoping this will help track down the randoms segfaults --- .../Common/ScriptEngineBase/EventQueueThreadClass.cs | 16 ++++++++-------- .../ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase') diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs index e171d80..aa607d8 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs @@ -228,14 +228,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase try { ///cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined -///#if DEBUG -/// eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " + -/// "Executing event:\r\n" -/// + "QIS.localID: " + QIS.localID -/// + ", QIS.itemID: " + QIS.itemID -/// + ", QIS.functionName: " + -/// QIS.functionName); -///#endif +#if DEBUG + eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " + + "Executing event:\r\n" + + "QIS.localID: " + QIS.localID + + ", QIS.itemID: " + QIS.itemID + + ", QIS.functionName: " + + QIS.functionName); +#endif LastExecutionStarted = DateTime.Now.Ticks; KillCurrentScript = false; InExecution = true; diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs index 78d9f7d..dab5845 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs @@ -127,9 +127,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase public void ReadConfig() { -//#if DEBUG -// m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules"); -//#endif +#if DEBUG + m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules"); +#endif RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30); // Reload from disk? No! -- cgit v1.1