minor: make rest (not comm) modules less noisy if they are disabled

remotes/origin/0.6.7-post-fixes
Justin Clark-Casey (justincc) 2009-09-24 17:21:47 +01:00
parent e1abc3d4c4
commit 784e78a9e8
3 changed files with 5 additions and 4 deletions

View File

@ -207,7 +207,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
// This plugin will only be enabled if the broader // This plugin will only be enabled if the broader
// REST plugin mechanism is enabled. // REST plugin mechanism is enabled.
Rest.Log.InfoFormat("{0} Plugin is initializing", MsgId); //Rest.Log.InfoFormat("{0} Plugin is initializing", MsgId);
base.Initialise(openSim); base.Initialise(openSim);
@ -216,7 +216,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
if (!IsEnabled) if (!IsEnabled)
{ {
Rest.Log.WarnFormat("{0} Plugins are disabled", MsgId); //Rest.Log.WarnFormat("{0} Plugins are disabled", MsgId);
return; return;
} }

View File

@ -68,9 +68,10 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions
base.Initialise(openSim); base.Initialise(openSim);
if (!IsEnabled) if (!IsEnabled)
{ {
m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); //m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID);
return; return;
} }
m_log.InfoFormat("{0} REST region plugin enabled", MsgID); m_log.InfoFormat("{0} REST region plugin enabled", MsgID);
// add REST method handlers // add REST method handlers

View File

@ -216,7 +216,7 @@ namespace OpenSim.ApplicationPlugins.Rest
if (!_config.GetBoolean("enabled", false)) if (!_config.GetBoolean("enabled", false))
{ {
m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); //m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID);
return; return;
} }