aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs
diff options
context:
space:
mode:
authorCharles Krinke2009-02-22 20:52:55 +0000
committerCharles Krinke2009-02-22 20:52:55 +0000
commit8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch)
tree96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs
parentAllow delivery of object messages gridwide (diff)
downloadopensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip
opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz
opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2
opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs6
1 files changed, 5 insertions, 1 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
28using System; 28using System;
29using OpenMetaverse; 29using OpenMetaverse;
30using log4net;
31using System.Reflection;
30 32
31namespace OpenSim.Region.Framework.Scenes.Scripting 33namespace 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}