From 9a8569160f5ca390f25127a73589ac420432a7db Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 7 Aug 2008 15:12:33 +0000 Subject: Mantis#1899. Thank you kindly, Cmickeyb for a patch that: attached are some patches to either comment out direct console writes or to convert them to log writes --- .../ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs | 16 ++++++++-------- .../Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs | 2 +- .../ScriptEngine/Common/ScriptEngineBase/EventManager.cs | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs index 0a2ce15..aacbd55 100644 --- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs @@ -125,19 +125,19 @@ namespace OpenSim.Region.ScriptEngine.Common // Get this AppDomain's settings and display some of them. AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation; - Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}", - ads.ApplicationName, - ads.ApplicationBase, - ads.ConfigurationFile - ); + // Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}", + // ads.ApplicationName, + // ads.ApplicationBase, + // ads.ConfigurationFile + // ); // Display the name of the calling AppDomain and the name // of the second domain. // NOTE: The application's thread has transitioned between // AppDomains. - Console.WriteLine("Calling to '{0}'.", - Thread.GetDomain().FriendlyName - ); + // Console.WriteLine("Calling to '{0}'.", + // Thread.GetDomain().FriendlyName + // ); return; } diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs index f6de3c6..09af34a 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs @@ -59,7 +59,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin public void SetTimerEvent(uint m_localID, LLUUID m_itemID, double sec) { - Console.WriteLine("SetTimerEvent"); + // Console.WriteLine("SetTimerEvent"); // Always remove first, in case this is a re-set UnSetTimerEvents(m_localID, m_itemID); diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs index 0e852d1..eea7ab4 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs @@ -188,14 +188,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase public void OnRezScript(uint localID, LLUUID itemID, string script, int startParam, bool postOnRez) { - Console.WriteLine("OnRezScript localID: " + localID + " LLUID: " + itemID.ToString() + " Size: " + + myScriptEngine.Log.Debug("OnRezScript localID: " + localID + " LLUID: " + itemID.ToString() + " Size: " + script.Length); myScriptEngine.m_ScriptManager.StartScript(localID, itemID, script, startParam, postOnRez); } public void OnRemoveScript(uint localID, LLUUID itemID) { - Console.WriteLine("OnRemoveScript localID: " + localID + " LLUID: " + itemID.ToString()); + myScriptEngine.Log.Debug("OnRemoveScript localID: " + localID + " LLUID: " + itemID.ToString()); myScriptEngine.m_ScriptManager.StopScript( localID, itemID -- cgit v1.1