mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
Improve logging by making it clearer which script is failing if an assembly fails to load.
Moves the noise co-op start/stop debug log messages to only display if xengine debug level >= 1 Logs which stop strategy is being used (abort or co-op) Adjusts some other logging to remove not very useful stuff
This commit is contained in:
@@ -241,7 +241,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_ScriptConfig = configSource.Configs["XEngine"];
|
||||
m_ConfigSource = configSource;
|
||||
|
||||
if (m_ScriptConfig.GetString("ScriptStopStrategy", "abort") == "co-op")
|
||||
string rawScriptStopStrategy = m_ScriptConfig.GetString("ScriptStopStrategy", "abort");
|
||||
|
||||
m_log.InfoFormat("[XEngine]: Script stop strategy is {0}", rawScriptStopStrategy);
|
||||
|
||||
if (rawScriptStopStrategy == "co-op")
|
||||
{
|
||||
ScriptClassName = "XEngineScript";
|
||||
ScriptBaseClassName = typeof(XEngineScriptBase).FullName;
|
||||
@@ -261,15 +265,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
{
|
||||
if (m_ScriptConfig == null)
|
||||
return;
|
||||
|
||||
m_ScriptFailCount = 0;
|
||||
m_ScriptErrorMessage = String.Empty;
|
||||
|
||||
if (m_ScriptConfig == null)
|
||||
{
|
||||
// m_log.ErrorFormat("[XEngine] No script configuration found. Scripts disabled");
|
||||
return;
|
||||
}
|
||||
|
||||
m_Enabled = m_ScriptConfig.GetBoolean("Enabled", true);
|
||||
|
||||
if (!m_Enabled)
|
||||
|
||||
Reference in New Issue
Block a user