diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scripting/ScriptEngineLoader.cs | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs b/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs index fd7ff96..93bbf32 100644 --- a/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs +++ b/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs | |||
@@ -27,11 +27,15 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using OpenMetaverse; | 29 | using OpenMetaverse; |
30 | using log4net; | ||
31 | using System.Reflection; | ||
30 | 32 | ||
31 | namespace OpenSim.Region.Framework.Scenes.Scripting | 33 | namespace OpenSim.Region.Framework.Scenes.Scripting |
32 | { | 34 | { |
33 | public class NullScriptHost : IScriptHost | 35 | public class NullScriptHost : IScriptHost |
34 | { | 36 | { |
37 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
38 | |||
35 | private Vector3 m_pos = new Vector3(128, 128, 30); | 39 | private Vector3 m_pos = new Vector3(128, 128, 30); |
36 | 40 | ||
37 | public string Name | 41 | public string Name |
@@ -80,7 +84,7 @@ namespace OpenSim.Region.Framework.Scenes.Scripting | |||
80 | 84 | ||
81 | public void SetText(string text, Vector3 color, double alpha) | 85 | public void SetText(string text, Vector3 color, double alpha) |
82 | { | 86 | { |
83 | Console.WriteLine("Tried to SetText [{0}] on NullScriptHost", text); | 87 | m_log.Warn("Tried to SetText "+text+" on NullScriptHost"); |
84 | } | 88 | } |
85 | } | 89 | } |
86 | } | 90 | } |
diff --git a/OpenSim/Region/Framework/Scenes/Scripting/ScriptEngineLoader.cs b/OpenSim/Region/Framework/Scenes/Scripting/ScriptEngineLoader.cs index 58228cc..79ffe44 100644 --- a/OpenSim/Region/Framework/Scenes/Scripting/ScriptEngineLoader.cs +++ b/OpenSim/Region/Framework/Scenes/Scripting/ScriptEngineLoader.cs | |||
@@ -87,10 +87,10 @@ namespace OpenSim.Region.Framework.Scenes.Scripting | |||
87 | //} | 87 | //} |
88 | 88 | ||
89 | 89 | ||
90 | //Console.WriteLine("Loading: " + FileName); | 90 | //m_log.Debug("Loading: " + FileName); |
91 | //foreach (Type _t in a.GetTypes()) | 91 | //foreach (Type _t in a.GetTypes()) |
92 | //{ | 92 | //{ |
93 | // Console.WriteLine("Type: " + _t.ToString()); | 93 | // m_log.Debug("Type: " + _t.ToString()); |
94 | //} | 94 | //} |
95 | 95 | ||
96 | Type t; | 96 | Type t; |