diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index c1902ba..bdf80c6 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | |||
@@ -45,9 +45,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
45 | [Serializable] | 45 | [Serializable] |
46 | public class ScriptEngine : IRegionModule, IScriptEngine, IScriptModule | 46 | public class ScriptEngine : IRegionModule, IScriptEngine, IScriptModule |
47 | { | 47 | { |
48 | private static readonly ILog m_log = | 48 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
49 | LogManager.GetLogger( | ||
50 | MethodBase.GetCurrentMethod().DeclaringType); | ||
51 | 49 | ||
52 | public static List<ScriptEngine> ScriptEngines = | 50 | public static List<ScriptEngine> ScriptEngines = |
53 | new List<ScriptEngine>(); | 51 | new List<ScriptEngine>(); |
@@ -265,7 +263,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
265 | } | 263 | } |
266 | catch (AppDomainUnloadedException) | 264 | catch (AppDomainUnloadedException) |
267 | { | 265 | { |
268 | Console.WriteLine("[SCRIPT]: state change called when "+ | 266 | m_log.Error("[SCRIPT]: state change called when "+ |
269 | "script was unloaded. Nothing to worry about, "+ | 267 | "script was unloaded. Nothing to worry about, "+ |
270 | "but noting the occurance"); | 268 | "but noting the occurance"); |
271 | } | 269 | } |
@@ -285,7 +283,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
285 | } | 283 | } |
286 | catch (AppDomainUnloadedException) | 284 | catch (AppDomainUnloadedException) |
287 | { | 285 | { |
288 | Console.WriteLine("[SCRIPT]: state change called when "+ | 286 | m_log.Error("[SCRIPT]: state change called when "+ |
289 | "script was unloaded. Nothing to worry about, but "+ | 287 | "script was unloaded. Nothing to worry about, but "+ |
290 | "noting the occurance"); | 288 | "noting the occurance"); |
291 | } | 289 | } |