refactor: separate out console and status report generation parts of XEngine
parent
4803686078
commit
04eb170624
|
@ -380,6 +380,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_Scene))
|
if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_Scene))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
MainConsole.Instance.OutputFormat(GetStatusReport());
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetStatusReport()
|
||||||
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.AppendFormat("Status of XEngine instance for {0}\n", m_Scene.RegionInfo.RegionName);
|
sb.AppendFormat("Status of XEngine instance for {0}\n", m_Scene.RegionInfo.RegionName);
|
||||||
|
|
||||||
|
@ -407,7 +412,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
Listener l = AsyncCommandManager.GetListenerPlugin(this);
|
Listener l = AsyncCommandManager.GetListenerPlugin(this);
|
||||||
sb.AppendFormat("Listeners : {0}\n", l.ListenerCount);
|
sb.AppendFormat("Listeners : {0}\n", l.ListenerCount);
|
||||||
|
|
||||||
MainConsole.Instance.OutputFormat(sb.ToString());
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleShowScripts(string module, string[] cmdparams)
|
public void HandleShowScripts(string module, string[] cmdparams)
|
||||||
|
|
Loading…
Reference in New Issue