From 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 22 Feb 2009 20:52:55 +0000 Subject: 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. --- OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs | 6 +++++- OpenSim/Region/Framework/Scenes/Scripting/ScriptEngineLoader.cs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/Scripting') 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 @@ using System; using OpenMetaverse; +using log4net; +using System.Reflection; namespace OpenSim.Region.Framework.Scenes.Scripting { public class NullScriptHost : IScriptHost { + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private Vector3 m_pos = new Vector3(128, 128, 30); public string Name @@ -80,7 +84,7 @@ namespace OpenSim.Region.Framework.Scenes.Scripting public void SetText(string text, Vector3 color, double alpha) { - Console.WriteLine("Tried to SetText [{0}] on NullScriptHost", text); + m_log.Warn("Tried to SetText "+text+" on NullScriptHost"); } } } 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 //} - //Console.WriteLine("Loading: " + FileName); + //m_log.Debug("Loading: " + FileName); //foreach (Type _t in a.GetTypes()) //{ - // Console.WriteLine("Type: " + _t.ToString()); + // m_log.Debug("Type: " + _t.ToString()); //} Type t; -- cgit v1.1