aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorMelanie2012-01-26 00:44:32 +0000
committerMelanie2012-01-26 00:44:32 +0000
commit36e6edfc65d2fa2b27d473234ee2d22c73cdc58a (patch)
tree4f8efc72b27ab16d5d86c0ca73f4a51c4c9128a0 /OpenSim/Region/ScriptEngine
parentMerge branch 'master' into careminster (diff)
parentRe-enable error logging associated with assembly and script loading failure i... (diff)
downloadopensim-SC_OLD-36e6edfc65d2fa2b27d473234ee2d22c73cdc58a.zip
opensim-SC_OLD-36e6edfc65d2fa2b27d473234ee2d22c73cdc58a.tar.gz
opensim-SC_OLD-36e6edfc65d2fa2b27d473234ee2d22c73cdc58a.tar.bz2
opensim-SC_OLD-36e6edfc65d2fa2b27d473234ee2d22c73cdc58a.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs25
1 files changed, 17 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 9ff2e4d..34f2cc7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -110,7 +110,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
110 private Dictionary<string,IScriptApi> m_Apis = new Dictionary<string,IScriptApi>(); 110 private Dictionary<string,IScriptApi> m_Apis = new Dictionary<string,IScriptApi>();
111 111
112 // Script state 112 // Script state
113 private string m_State="default"; 113 private string m_State = "default";
114 114
115 public Object[] PluginData = new Object[0]; 115 public Object[] PluginData = new Object[0];
116 116
@@ -128,6 +128,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
128 m_minEventDelay = value; 128 m_minEventDelay = value;
129 else 129 else
130 m_minEventDelay = 0.0; 130 m_minEventDelay = 0.0;
131
131 m_eventDelayTicks = (long)(m_minEventDelay * 10000000L); 132 m_eventDelayTicks = (long)(m_minEventDelay * 10000000L);
132 m_nextEventTimeTicks = DateTime.Now.Ticks; 133 m_nextEventTimeTicks = DateTime.Now.Ticks;
133 } 134 }
@@ -298,8 +299,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
298 } 299 }
299 catch (Exception e) 300 catch (Exception e)
300 { 301 {
301 m_log.ErrorFormat("[Script] Error loading assembly {0}\n"+e.ToString(), assembly); 302 m_log.ErrorFormat(
302 throw; 303 "[SCRIPT INSTANCE]: Error loading assembly {0}. Exception {1}{2}",
304 assembly, e.Message, e.StackTrace);
303 } 305 }
304 306
305 try 307 try
@@ -314,9 +316,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
314 part.SetScriptEvents(m_ItemID, 316 part.SetScriptEvents(m_ItemID,
315 (int)m_Script.GetStateEventFlags(State)); 317 (int)m_Script.GetStateEventFlags(State));
316 } 318 }
317 catch (Exception) 319 catch (Exception e)
318 { 320 {
319 // m_log.Error("[Script] Error loading script instance\n"+e.ToString()); 321 m_log.ErrorFormat(
322 "[SCRIPT INSTANCE]: Error loading script instance from assembly {0}. Exception {1}{2}",
323 assembly, e.Message, e.StackTrace);
324
320 return; 325 return;
321 } 326 }
322 327
@@ -378,12 +383,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
378 } 383 }
379 else 384 else
380 { 385 {
381 // m_log.Error("[Script] Unable to load script state: Memory limit exceeded"); 386 m_log.ErrorFormat(
387 "[SCRIPT INSTANCE]: Unable to load script state from assembly {0}: Memory limit exceeded",
388 assembly);
382 } 389 }
383 } 390 }
384 catch (Exception) 391 catch (Exception e)
385 { 392 {
386 // m_log.ErrorFormat("[Script] Unable to load script state from xml: {0}\n"+e.ToString(), xml); 393 m_log.ErrorFormat(
394 "[SCRIPT INSTANCE]: Unable to load script state from assembly {0}. XML is {1}. Exception {2}{3}",
395 assembly, xml, e.Message, e.StackTrace);
387 } 396 }
388 } 397 }
389// else 398// else