From 784e78a9e829172ce520198c261bc9b4106761d4 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Thu, 24 Sep 2009 17:21:47 +0100 Subject: [PATCH] minor: make rest (not comm) modules less noisy if they are disabled --- OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs | 4 ++-- OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs | 3 ++- OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs index 13f6426c2e..db62d52438 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs @@ -207,7 +207,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory // This plugin will only be enabled if the broader // REST plugin mechanism is enabled. - Rest.Log.InfoFormat("{0} Plugin is initializing", MsgId); + //Rest.Log.InfoFormat("{0} Plugin is initializing", MsgId); base.Initialise(openSim); @@ -216,7 +216,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory if (!IsEnabled) { - Rest.Log.WarnFormat("{0} Plugins are disabled", MsgId); + //Rest.Log.WarnFormat("{0} Plugins are disabled", MsgId); return; } diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs b/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs index f790c5e41d..02ef588806 100644 --- a/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs +++ b/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs @@ -68,9 +68,10 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions base.Initialise(openSim); if (!IsEnabled) { - m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); + //m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); return; } + m_log.InfoFormat("{0} REST region plugin enabled", MsgID); // add REST method handlers diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs index fd2338402a..ff1502ab34 100644 --- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs +++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs @@ -216,7 +216,7 @@ namespace OpenSim.ApplicationPlugins.Rest if (!_config.GetBoolean("enabled", false)) { - m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); + //m_log.WarnFormat("{0} Rest Plugins are disabled", MsgID); return; }