diff options
author | Tedd Hansen | 2007-08-14 15:59:36 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-14 15:59:36 +0000 |
commit | afaa12a9e2fd24c03c0f46716e9758cc591703c2 (patch) | |
tree | f6f6977314ab65d88822b592378806142090e99d /OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | |
parent | More inventory work, should be able to now create new inventory folders and t... (diff) | |
download | opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.zip opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.gz opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.bz2 opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.xz |
ScriptEngine: Some error handling, logs to logger
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 4a09cf3..bcfc06d 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | |||
@@ -42,16 +42,20 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
42 | internal EventManager myEventManager; // Handles and queues incoming events from OpenSim | 42 | internal EventManager myEventManager; // Handles and queues incoming events from OpenSim |
43 | internal EventQueueManager myEventQueueManager; // Executes events | 43 | internal EventQueueManager myEventQueueManager; // Executes events |
44 | internal ScriptManager myScriptManager; // Load, unload and execute scripts | 44 | internal ScriptManager myScriptManager; // Load, unload and execute scripts |
45 | internal OpenSim.Framework.Console.LogBase m_logger; | ||
45 | 46 | ||
46 | public ScriptEngine() | 47 | public ScriptEngine() |
47 | { | 48 | { |
48 | Common.SendToDebug("ScriptEngine Object Initialized"); | 49 | //Common.SendToDebug("ScriptEngine Object Initialized"); |
50 | Common.mySE = this; | ||
49 | } | 51 | } |
50 | 52 | ||
51 | public void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld) | 53 | public void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld, OpenSim.Framework.Console.LogBase logger) |
52 | { | 54 | { |
53 | World = Sceneworld; | 55 | World = Sceneworld; |
54 | Common.SendToDebug("ScriptEngine InitializeEngine()"); | 56 | m_logger = logger; |
57 | |||
58 | m_logger.Status("ScriptEngine", "InitializeEngine"); | ||
55 | 59 | ||
56 | // Create all objects we'll be using | 60 | // Create all objects we'll be using |
57 | myEventQueueManager = new EventQueueManager(this); | 61 | myEventQueueManager = new EventQueueManager(this); |
@@ -71,7 +75,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
71 | [Obsolete("!!!FOR DEBUGGING ONLY!!!")] | 75 | [Obsolete("!!!FOR DEBUGGING ONLY!!!")] |
72 | public void StartScript(string ScriptID, string ObjectID) | 76 | public void StartScript(string ScriptID, string ObjectID) |
73 | { | 77 | { |
74 | Common.SendToDebug("ScriptEngine DEBUG: StartScript: " + ScriptID); | 78 | m_logger.Status("ScriptEngine", "DEBUG: StartScript: " + ScriptID); |
75 | myScriptManager.StartScript(ScriptID, ObjectID); | 79 | myScriptManager.StartScript(ScriptID, ObjectID); |
76 | } | 80 | } |
77 | } | 81 | } |