diff --git a/OpenSim/Region/ScriptEngine/Common/Executor.cs b/OpenSim/Region/ScriptEngine/Common/Executor.cs index e35882b659..21cca6b75b 100644 --- a/OpenSim/Region/ScriptEngine/Common/Executor.cs +++ b/OpenSim/Region/ScriptEngine/Common/Executor.cs @@ -49,9 +49,9 @@ namespace OpenSim.Region.ScriptEngine.Common string EventName = m_Script.State + "_event_" + FunctionName; -///#if DEBUG -/// Console.WriteLine("ScriptEngine: Script event function name: " + EventName); -///#endif +#if DEBUG + Console.WriteLine("ScriptEngine: Script event function name: " + EventName); +#endif if (Events.ContainsKey(EventName) == false) { @@ -80,13 +80,13 @@ namespace OpenSim.Region.ScriptEngine.Common } //cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined -///#if DEBUG -/// Console.WriteLine("ScriptEngine: Executing function name: " + EventName); -///#endif +#if DEBUG + Console.WriteLine("ScriptEngine: Executing function name: " + EventName); +#endif // Found ev.Invoke(m_Script, args); } } -} \ No newline at end of file +} diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs index e171d80c32..aa607d8ab1 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 78d9f7d9a4..dab58457ec 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!