aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorSean Dague2008-02-18 14:17:09 +0000
committerSean Dague2008-02-18 14:17:09 +0000
commitf47bcb0f98c6272caed91a436ad714ac70c43cfe (patch)
treef4a8f12f249249c0122453d953d66203339c00ea /OpenSim/Region/ScriptEngine/Common
parentUpdate CONTRIBUTORS (diff)
downloadopensim-SC_OLD-f47bcb0f98c6272caed91a436ad714ac70c43cfe.zip
opensim-SC_OLD-f47bcb0f98c6272caed91a436ad714ac70c43cfe.tar.gz
opensim-SC_OLD-f47bcb0f98c6272caed91a436ad714ac70c43cfe.tar.bz2
opensim-SC_OLD-f47bcb0f98c6272caed91a436ad714ac70c43cfe.tar.xz
bring back some script engine debugging, hoping this will help track down the randoms segfaults
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/Executor.cs14
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs16
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs6
3 files changed, 18 insertions, 18 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/Executor.cs b/OpenSim/Region/ScriptEngine/Common/Executor.cs
index e35882b..21cca6b 100644
--- a/OpenSim/Region/ScriptEngine/Common/Executor.cs
+++ b/OpenSim/Region/ScriptEngine/Common/Executor.cs
@@ -49,9 +49,9 @@ namespace OpenSim.Region.ScriptEngine.Common
49 49
50 string EventName = m_Script.State + "_event_" + FunctionName; 50 string EventName = m_Script.State + "_event_" + FunctionName;
51 51
52///#if DEBUG 52#if DEBUG
53/// Console.WriteLine("ScriptEngine: Script event function name: " + EventName); 53 Console.WriteLine("ScriptEngine: Script event function name: " + EventName);
54///#endif 54#endif
55 55
56 if (Events.ContainsKey(EventName) == false) 56 if (Events.ContainsKey(EventName) == false)
57 { 57 {
@@ -80,13 +80,13 @@ namespace OpenSim.Region.ScriptEngine.Common
80 } 80 }
81 81
82//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined 82//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
83///#if DEBUG 83#if DEBUG
84/// Console.WriteLine("ScriptEngine: Executing function name: " + EventName); 84 Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
85///#endif 85#endif
86 // Found 86 // Found
87 ev.Invoke(m_Script, args); 87 ev.Invoke(m_Script, args);
88 88
89 } 89 }
90 90
91 } 91 }
92} \ No newline at end of file 92}
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
228 try 228 try
229 { 229 {
230///cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined 230///cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
231///#if DEBUG 231#if DEBUG
232/// eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " + 232 eventQueueManager.m_ScriptEngine.Log.Debug("[" + ScriptEngineName + "]: " +
233/// "Executing event:\r\n" 233 "Executing event:\r\n"
234/// + "QIS.localID: " + QIS.localID 234 + "QIS.localID: " + QIS.localID
235/// + ", QIS.itemID: " + QIS.itemID 235 + ", QIS.itemID: " + QIS.itemID
236/// + ", QIS.functionName: " + 236 + ", QIS.functionName: " +
237/// QIS.functionName); 237 QIS.functionName);
238///#endif 238#endif
239 LastExecutionStarted = DateTime.Now.Ticks; 239 LastExecutionStarted = DateTime.Now.Ticks;
240 KillCurrentScript = false; 240 KillCurrentScript = false;
241 InExecution = true; 241 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
127 127
128 public void ReadConfig() 128 public void ReadConfig()
129 { 129 {
130//#if DEBUG 130#if DEBUG
131// m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules"); 131 m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules");
132//#endif 132#endif
133 RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30); 133 RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30);
134 134
135 // Reload from disk? No! 135 // Reload from disk? No!