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 writes0.6.0-stable
parent
b72cc7df01
commit
9a8569160f
|
@ -125,19 +125,19 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
// Get this AppDomain's settings and display some of them.
|
// Get this AppDomain's settings and display some of them.
|
||||||
AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation;
|
AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation;
|
||||||
Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}",
|
// Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}",
|
||||||
ads.ApplicationName,
|
// ads.ApplicationName,
|
||||||
ads.ApplicationBase,
|
// ads.ApplicationBase,
|
||||||
ads.ConfigurationFile
|
// ads.ConfigurationFile
|
||||||
);
|
// );
|
||||||
|
|
||||||
// Display the name of the calling AppDomain and the name
|
// Display the name of the calling AppDomain and the name
|
||||||
// of the second domain.
|
// of the second domain.
|
||||||
// NOTE: The application's thread has transitioned between
|
// NOTE: The application's thread has transitioned between
|
||||||
// AppDomains.
|
// AppDomains.
|
||||||
Console.WriteLine("Calling to '{0}'.",
|
// Console.WriteLine("Calling to '{0}'.",
|
||||||
Thread.GetDomain().FriendlyName
|
// Thread.GetDomain().FriendlyName
|
||||||
);
|
// );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
|
||||||
|
|
||||||
public void SetTimerEvent(uint m_localID, LLUUID m_itemID, double sec)
|
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
|
// Always remove first, in case this is a re-set
|
||||||
UnSetTimerEvents(m_localID, m_itemID);
|
UnSetTimerEvents(m_localID, m_itemID);
|
||||||
|
|
|
@ -188,14 +188,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||||
|
|
||||||
public void OnRezScript(uint localID, LLUUID itemID, string script, int startParam, bool postOnRez)
|
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);
|
script.Length);
|
||||||
myScriptEngine.m_ScriptManager.StartScript(localID, itemID, script, startParam, postOnRez);
|
myScriptEngine.m_ScriptManager.StartScript(localID, itemID, script, startParam, postOnRez);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnRemoveScript(uint localID, LLUUID itemID)
|
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(
|
myScriptEngine.m_ScriptManager.StopScript(
|
||||||
localID,
|
localID,
|
||||||
itemID
|
itemID
|
||||||
|
|
Loading…
Reference in New Issue