aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs13
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs9
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs16
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs16
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs42
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs8
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs5
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs51
8 files changed, 85 insertions, 75 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs
index eeca143..d35e585 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs
@@ -34,6 +34,7 @@ using System.Security.Policy;
34using System.Security.Permissions; 34using System.Security.Permissions;
35using OpenSim.Region.ScriptEngine.Interfaces; 35using OpenSim.Region.ScriptEngine.Interfaces;
36using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 36using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
37using log4net;
37 38
38namespace OpenSim.Region.ScriptEngine.DotNetEngine 39namespace OpenSim.Region.ScriptEngine.DotNetEngine
39{ 40{
@@ -51,6 +52,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
51 // 4. Unload AppDomain completely when all scripts in it has stopped 52 // 4. Unload AppDomain completely when all scripts in it has stopped
52 // 53 //
53 54
55 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
56
54 private int maxScriptsPerAppDomain = 1; 57 private int maxScriptsPerAppDomain = 1;
55 58
56 // Internal list of all AppDomains 59 // Internal list of all AppDomains
@@ -138,12 +141,12 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
138 AppDomain AD = AppDomain.CreateDomain("ScriptAppDomain_" + 141 AppDomain AD = AppDomain.CreateDomain("ScriptAppDomain_" +
139 AppDomainNameCount, null, ads); 142 AppDomainNameCount, null, ads);
140 143
141 m_scriptEngine.Log.Info("[" + m_scriptEngine.ScriptEngineName + 144 m_log.Info("[" + m_scriptEngine.ScriptEngineName +
142 "]: AppDomain Loading: " + 145 "]: AppDomain Loading: " +
143 AssemblyName.GetAssemblyName( 146 AssemblyName.GetAssemblyName(
144 "OpenSim.Region.ScriptEngine.Shared.dll").ToString()); 147 "OpenSim.Region.ScriptEngine.Shared.dll").ToString());
145 AD.Load(AssemblyName.GetAssemblyName( 148 AD.Load(AssemblyName.GetAssemblyName(
146 "OpenSim.Region.ScriptEngine.Shared.dll")); 149 "OpenSim.Region.ScriptEngine.Shared.dll"));
147 150
148 // Return the new AppDomain 151 // Return the new AppDomain
149 return AD; 152 return AD;
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
index 56b4c8e..f10722b 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
@@ -25,22 +25,27 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System.Reflection;
29using log4net;
30
28namespace OpenSim.Region.ScriptEngine.DotNetEngine 31namespace OpenSim.Region.ScriptEngine.DotNetEngine
29{ 32{
30 public static class Common 33 public static class Common
31 { 34 {
35 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
36
32 public static ScriptEngine mySE; 37 public static ScriptEngine mySE;
33 38
34 // This class just contains some static log stuff used for debugging. 39 // This class just contains some static log stuff used for debugging.
35 40
36 public static void SendToDebug(string message) 41 public static void SendToDebug(string message)
37 { 42 {
38 mySE.Log.Info("[" + mySE.ScriptEngineName + "]: Debug: " + message); 43 m_log.Info("[" + mySE.ScriptEngineName + "]: Debug: " + message);
39 } 44 }
40 45
41 public static void SendToLog(string message) 46 public static void SendToLog(string message)
42 { 47 {
43 mySE.Log.Info("[" + mySE.ScriptEngineName + "]: LOG: " + message); 48 m_log.Info("[" + mySE.ScriptEngineName + "]: LOG: " + message);
44 } 49 }
45 } 50 }
46} 51}
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs
index cc78b51..e55abb7 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs
@@ -27,6 +27,7 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Reflection;
30using OpenMetaverse; 31using OpenMetaverse;
31using OpenSim.Framework; 32using OpenSim.Framework;
32using OpenSim.Region.CoreModules.Avatar.Currency.SampleMoney; 33using OpenSim.Region.CoreModules.Avatar.Currency.SampleMoney;
@@ -35,6 +36,7 @@ using OpenSim.Region;
35using OpenSim.Region.Framework.Scenes; 36using OpenSim.Region.Framework.Scenes;
36using OpenSim.Region.Framework.Interfaces; 37using OpenSim.Region.Framework.Interfaces;
37using OpenSim.Region.ScriptEngine.Shared; 38using OpenSim.Region.ScriptEngine.Shared;
39using log4net;
38 40
39namespace OpenSim.Region.ScriptEngine.DotNetEngine 41namespace OpenSim.Region.ScriptEngine.DotNetEngine
40{ 42{
@@ -63,6 +65,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
63 // verify what exact parameters are needed. 65 // verify what exact parameters are needed.
64 // 66 //
65 67
68 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
69
66 private ScriptEngine myScriptEngine; 70 private ScriptEngine myScriptEngine;
67 71
68 public EventManager(ScriptEngine _ScriptEngine, bool performHookUp) 72 public EventManager(ScriptEngine _ScriptEngine, bool performHookUp)
@@ -78,8 +82,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
78 82
79 public void HookUpEvents() 83 public void HookUpEvents()
80 { 84 {
81 myScriptEngine.Log.Info("[" + myScriptEngine.ScriptEngineName + 85 m_log.Info("[" + myScriptEngine.ScriptEngineName +
82 "]: Hooking up to server events"); 86 "]: Hooking up to server events");
83 87
84 myScriptEngine.World.EventManager.OnObjectGrab += 88 myScriptEngine.World.EventManager.OnObjectGrab +=
85 touch_start; 89 touch_start;
@@ -293,9 +297,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
293 if (engine != myScriptEngine.ScriptEngineName) 297 if (engine != myScriptEngine.ScriptEngineName)
294 return; 298 return;
295 299
296 myScriptEngine.Log.Debug("OnRezScript localID: " + localID + 300 m_log.Debug("OnRezScript localID: " + localID +
297 " LLUID: " + itemID.ToString() + " Size: " + 301 " LLUID: " + itemID.ToString() + " Size: " +
298 script.Length); 302 script.Length);
299 303
300 myScriptEngine.m_ScriptManager.StartScript(localID, itemID, script, 304 myScriptEngine.m_ScriptManager.StartScript(localID, itemID, script,
301 startParam, postOnRez); 305 startParam, postOnRez);
@@ -303,7 +307,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
303 307
304 public void OnRemoveScript(uint localID, UUID itemID) 308 public void OnRemoveScript(uint localID, UUID itemID)
305 { 309 {
306 myScriptEngine.Log.Debug("OnRemoveScript localID: " + localID + " LLUID: " + itemID.ToString()); 310 m_log.Debug("OnRemoveScript localID: " + localID + " LLUID: " + itemID.ToString());
307 myScriptEngine.m_ScriptManager.StopScript( 311 myScriptEngine.m_ScriptManager.StopScript(
308 localID, 312 localID,
309 itemID 313 itemID
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
index 4a094e2..31c0d4d 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
@@ -28,8 +28,10 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Reflection;
31using OpenMetaverse; 32using OpenMetaverse;
32using OpenSim.Region.ScriptEngine.Shared; 33using OpenSim.Region.ScriptEngine.Shared;
34using log4net;
33 35
34namespace OpenSim.Region.ScriptEngine.DotNetEngine 36namespace OpenSim.Region.ScriptEngine.DotNetEngine
35{ 37{
@@ -58,6 +60,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
58 // Not noticeable unless server is under high load. 60 // Not noticeable unless server is under high load.
59 // 61 //
60 62
63 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
64
61 public ScriptEngine m_ScriptEngine; 65 public ScriptEngine m_ScriptEngine;
62 66
63 /// <summary> 67 /// <summary>
@@ -211,7 +215,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
211 { 215 {
212 EventQueueThreadClass eqtc = new EventQueueThreadClass(); 216 EventQueueThreadClass eqtc = new EventQueueThreadClass();
213 eventQueueThreads.Add(eqtc); 217 eventQueueThreads.Add(eqtc);
214 //m_ScriptEngine.Log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: Started new script execution thread. Current thread count: " + eventQueueThreads.Count); 218 //m_log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: Started new script execution thread. Current thread count: " + eventQueueThreads.Count);
215 } 219 }
216 220
217 private void AbortThreadClass(EventQueueThreadClass threadClass) 221 private void AbortThreadClass(EventQueueThreadClass threadClass)
@@ -225,10 +229,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
225 } 229 }
226 catch (Exception) 230 catch (Exception)
227 { 231 {
228 //m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + ":EventQueueManager]: If you see this, could you please report it to Tedd:"); 232 //m_log.Error("[" + m_ScriptEngine.ScriptEngineName + ":EventQueueManager]: If you see this, could you please report it to Tedd:");
229 //m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + ":EventQueueManager]: Script thread execution timeout kill ended in exception: " + ex.ToString()); 233 //m_log.Error("[" + m_ScriptEngine.ScriptEngineName + ":EventQueueManager]: Script thread execution timeout kill ended in exception: " + ex.ToString());
230 } 234 }
231 //m_ScriptEngine.Log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: Killed script execution thread. Remaining thread count: " + eventQueueThreads.Count); 235 //m_log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: Killed script execution thread. Remaining thread count: " + eventQueueThreads.Count);
232 } 236 }
233 #endregion 237 #endregion
234 238
@@ -346,8 +350,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
346 { 350 {
347 if (eventQueue.Count >= EventExecutionMaxQueueSize) 351 if (eventQueue.Count >= EventExecutionMaxQueueSize)
348 { 352 {
349 m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + "]: ERROR: Event execution queue item count is at " + eventQueue.Count + ". Config variable \"EventExecutionMaxQueueSize\" is set to " + EventExecutionMaxQueueSize + ", so ignoring new event."); 353 m_log.Error("[" + m_ScriptEngine.ScriptEngineName + "]: ERROR: Event execution queue item count is at " + eventQueue.Count + ". Config variable \"EventExecutionMaxQueueSize\" is set to " + EventExecutionMaxQueueSize + ", so ignoring new event.");
350 m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + "]: Event ignored: localID: " + localID + ", itemID: " + itemID + ", FunctionName: " + FunctionName); 354 m_log.Error("[" + m_ScriptEngine.ScriptEngineName + "]: Event ignored: localID: " + localID + ", itemID: " + itemID + ", FunctionName: " + FunctionName);
351 return false; 355 return false;
352 } 356 }
353 357
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs
index 01cbb72..5451df2 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs
@@ -47,6 +47,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
47 // within a class 47 // within a class
48 public class EventQueueThreadClass 48 public class EventQueueThreadClass
49 { 49 {
50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
51
50 // How many ms to sleep if queue is empty 52 // How many ms to sleep if queue is empty
51 private static int nothingToDoSleepms;// = 50; 53 private static int nothingToDoSleepms;// = 50;
52 private static ThreadPriority MyThreadPriority; 54 private static ThreadPriority MyThreadPriority;
@@ -110,11 +112,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
110 break; 112 break;
111 default: 113 default:
112 MyThreadPriority = ThreadPriority.BelowNormal; 114 MyThreadPriority = ThreadPriority.BelowNormal;
113 m_ScriptEngine.Log.Error( 115 m_log.Error(
114 "[ScriptEngine.DotNetEngine]: Unknown "+ 116 "[ScriptEngine.DotNetEngine]: Unknown "+
115 "priority type \"" + pri + 117 "priority type \"" + pri +
116 "\" in config file. Defaulting to "+ 118 "\" in config file. Defaulting to "+
117 "\"BelowNormal\"."); 119 "\"BelowNormal\".");
118 break; 120 break;
119 } 121 }
120 } 122 }
@@ -186,24 +188,22 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
186 } 188 }
187 catch (ThreadAbortException) 189 catch (ThreadAbortException)
188 { 190 {
189 if (lastScriptEngine != null) 191 m_log.Info("[" + ScriptEngineName +
190 lastScriptEngine.Log.Info("[" + ScriptEngineName + 192 "]: ThreadAbortException while executing "+
191 "]: ThreadAbortException while executing "+ 193 "function.");
192 "function.");
193 } 194 }
194 catch (SelfDeleteException) // Must delete SOG 195 catch (SelfDeleteException) // Must delete SOG
195 { 196 {
196 SceneObjectPart part = 197 SceneObjectPart part =
197 lastScriptEngine.World.GetSceneObjectPart( 198 lastScriptEngine.World.GetSceneObjectPart(
198 lastLocalID); 199 lastLocalID);
199 if (part != null && part.ParentGroup != null) 200 if (part != null && part.ParentGroup != null)
200 lastScriptEngine.World.DeleteSceneObject( 201 lastScriptEngine.World.DeleteSceneObject(
201 part.ParentGroup, false); 202 part.ParentGroup, false);
202 } 203 }
203 catch (Exception e) 204 catch (Exception e)
204 { 205 {
205 if (lastScriptEngine != null) 206 m_log.ErrorFormat("[{0}]: Exception {1} thrown", ScriptEngineName, e.GetType().ToString());
206 lastScriptEngine.Log.ErrorFormat("[{0}]: Exception {1} thrown", ScriptEngineName, e.GetType().ToString());
207 throw e; 207 throw e;
208 } 208 }
209 } 209 }
@@ -214,10 +214,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
214 catch (Exception e) 214 catch (Exception e)
215 { 215 {
216 // TODO: Let users in the sim and those entering it and possibly an external watchdog know what has happened 216 // TODO: Let users in the sim and those entering it and possibly an external watchdog know what has happened
217 if (lastScriptEngine != null) 217 m_log.ErrorFormat(
218 lastScriptEngine.Log.ErrorFormat( 218 "[{0}]: Event queue thread terminating with exception. PLEASE REBOOT YOUR SIM - SCRIPT EVENTS WILL NOT WORK UNTIL YOU DO. Exception is {1}",
219 "[{0}]: Event queue thread terminating with exception. PLEASE REBOOT YOUR SIM - SCRIPT EVENTS WILL NOT WORK UNTIL YOU DO. Exception is {1}", 219 ScriptEngineName, e);
220 ScriptEngineName, e);
221 } 220 }
222 } 221 }
223 222
@@ -342,11 +341,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
342 } 341 }
343 catch (Exception) 342 catch (Exception)
344 { 343 {
345 m_ScriptEngine.m_EventQueueManager. 344 m_log.Error("[" +
346 m_ScriptEngine.Log.Error("[" + 345 ScriptEngineName + "]: " +
347 ScriptEngineName + "]: " + 346 "Unable to send text in-world:\r\n" +
348 "Unable to send text in-world:\r\n" + 347 text);
349 text);
350 } 348 }
351 finally 349 finally
352 { 350 {
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs
index 49e87c0..c157509 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/MaintenanceThread.cs
@@ -107,7 +107,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
107 private void StopMaintenanceThread() 107 private void StopMaintenanceThread()
108 { 108 {
109#if DEBUG 109#if DEBUG
110 //m_ScriptEngine.Log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: StopMaintenanceThread() called"); 110 //m_log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: StopMaintenanceThread() called");
111#endif 111#endif
112 //PleaseShutdown = true; 112 //PleaseShutdown = true;
113 Thread.Sleep(100); 113 Thread.Sleep(100);
@@ -120,7 +120,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
120 } 120 }
121 catch (Exception) 121 catch (Exception)
122 { 122 {
123 //m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + "]: Exception stopping maintenence thread: " + ex.ToString()); 123 //m_log.Error("[" + m_ScriptEngine.ScriptEngineName + "]: Exception stopping maintenence thread: " + ex.ToString());
124 } 124 }
125 } 125 }
126 126
@@ -131,8 +131,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
131 public void MaintenanceLoop() 131 public void MaintenanceLoop()
132 { 132 {
133 //if (m_ScriptEngine.m_EventQueueManager.maxFunctionExecutionTimens < MaintenanceLoopms) 133 //if (m_ScriptEngine.m_EventQueueManager.maxFunctionExecutionTimens < MaintenanceLoopms)
134 // m_ScriptEngine.Log.Warn("[" + m_ScriptEngine.ScriptEngineName + "]: " + 134 // m_log.Warn("[" + m_ScriptEngine.ScriptEngineName + "]: " +
135 // "Configuration error: MaxEventExecutionTimeMs is less than MaintenanceLoopms. The Maintenance Loop will only check scripts once per run."); 135 // "Configuration error: MaxEventExecutionTimeMs is less than MaintenanceLoopms. The Maintenance Loop will only check scripts once per run.");
136 136
137 long Last_maxFunctionExecutionTimens = 0; // DateTime.Now.Ticks; 137 long Last_maxFunctionExecutionTimens = 0; // DateTime.Now.Ticks;
138 long Last_ReReadConfigFilens = DateTime.Now.Ticks; 138 long Last_ReReadConfigFilens = DateTime.Now.Ticks;
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
index dc7716e..c1902ba 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
@@ -98,11 +98,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
98 get { return "ScriptEngine.DotNetEngine"; } 98 get { return "ScriptEngine.DotNetEngine"; }
99 } 99 }
100 100
101 public ILog Log
102 {
103 get { return m_log; }
104 }
105
106 public ScriptEngine() 101 public ScriptEngine()
107 { 102 {
108 // For logging, just need any instance, doesn't matter 103 // For logging, just need any instance, doesn't matter
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
index 0c06630..4ede7f1 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
@@ -240,14 +240,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
240 } 240 }
241 catch (Exception e2) // LEGIT: User Scripting 241 catch (Exception e2) // LEGIT: User Scripting
242 { 242 {
243 m_scriptEngine.Log.Error("[" + 243 m_log.Error("[" +
244 m_scriptEngine.ScriptEngineName + 244 m_scriptEngine.ScriptEngineName +
245 "]: Error displaying error in-world: " + 245 "]: Error displaying error in-world: " +
246 e2.ToString()); 246 e2.ToString());
247 m_scriptEngine.Log.Error("[" + 247 m_log.Error("[" +
248 m_scriptEngine.ScriptEngineName + "]: " + 248 m_scriptEngine.ScriptEngineName + "]: " +
249 "Errormessage: Error compiling script:\r\n" + 249 "Errormessage: Error compiling script:\r\n" +
250 e2.Message.ToString()); 250 e2.Message.ToString());
251 } 251 }
252 } 252 }
253 } 253 }
@@ -258,8 +258,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
258 if (id == null) 258 if (id == null)
259 return; 259 return;
260 260
261 m_scriptEngine.Log.DebugFormat("[{0}]: Unloading script", 261 m_log.DebugFormat("[{0}]: Unloading script",
262 m_scriptEngine.ScriptEngineName); 262 m_scriptEngine.ScriptEngineName);
263 263
264 // Stop long command on script 264 // Stop long command on script
265 AsyncCommandManager.RemoveScript(m_scriptEngine, localID, itemID); 265 AsyncCommandManager.RemoveScript(m_scriptEngine, localID, itemID);
@@ -280,11 +280,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
280 } 280 }
281 catch (Exception e) // LEGIT: User Scripting 281 catch (Exception e) // LEGIT: User Scripting
282 { 282 {
283 m_scriptEngine.Log.Error("[" + 283 m_log.Error("[" +
284 m_scriptEngine.ScriptEngineName + 284 m_scriptEngine.ScriptEngineName +
285 "]: Exception stopping script localID: " + 285 "]: Exception stopping script localID: " +
286 localID + " LLUID: " + itemID.ToString() + 286 localID + " LLUID: " + itemID.ToString() +
287 ": " + e.ToString()); 287 ": " + e.ToString());
288 } 288 }
289 } 289 }
290 290
@@ -379,10 +379,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
379 } 379 }
380 else if (item.Action == LUType.Load) 380 else if (item.Action == LUType.Load)
381 { 381 {
382 m_scriptEngine.Log.DebugFormat("[{0}]: Loading script", 382 m_log.DebugFormat("[{0}]: Loading script",
383 m_scriptEngine.ScriptEngineName); 383 m_scriptEngine.ScriptEngineName);
384 _StartScript(item.localID, item.itemID, item.script, 384 _StartScript(item.localID, item.itemID, item.script,
385 item.startParam, item.postOnRez); 385 item.startParam, item.postOnRez);
386 } 386 }
387 } 387 }
388 } 388 }
@@ -414,13 +414,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
414 { 414 {
415 if ((LUQueue.Count >= LoadUnloadMaxQueueSize) && m_started) 415 if ((LUQueue.Count >= LoadUnloadMaxQueueSize) && m_started)
416 { 416 {
417 m_scriptEngine.Log.Error("[" + 417 m_log.Error("[" +
418 m_scriptEngine.ScriptEngineName + 418 m_scriptEngine.ScriptEngineName +
419 "]: ERROR: Load/unload queue item count is at " + 419 "]: ERROR: Load/unload queue item count is at " +
420 LUQueue.Count + 420 LUQueue.Count +
421 ". Config variable \"LoadUnloadMaxQueueSize\" "+ 421 ". Config variable \"LoadUnloadMaxQueueSize\" "+
422 "is set to " + LoadUnloadMaxQueueSize + 422 "is set to " + LoadUnloadMaxQueueSize +
423 ", so ignoring new script."); 423 ", so ignoring new script.");
424
424 return; 425 return;
425 } 426 }
426 427