Output monitor data in response to console command on MainConsole.Instance rather than m_log

This should really be happening for all console commands (though many don't).
However, things might get difficult if both a console command and other code invoke the same paths.
connector_plugin
Justin Clark-Casey (justincc) 2012-10-04 02:17:57 +01:00
parent 3d36a6d55c
commit aa52c8b20f
1 changed files with 2 additions and 2 deletions

View File

@ -95,14 +95,14 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
{
foreach (IMonitor monitor in m_staticMonitors)
{
m_log.InfoFormat(
MainConsole.Instance.OutputFormat(
"[MONITOR MODULE]: {0} reports {1} = {2}",
m_scene.RegionInfo.RegionName, monitor.GetFriendlyName(), monitor.GetFriendlyValue());
}
foreach (KeyValuePair<string, float> tuple in m_scene.StatsReporter.GetExtraSimStats())
{
m_log.InfoFormat(
MainConsole.Instance.OutputFormat(
"[MONITOR MODULE]: {0} reports {1} = {2}",
m_scene.RegionInfo.RegionName, tuple.Key, tuple.Value);
}