minor: make irc bridge logging less verbose if it isn't actually enabled
parent
b9eb244d6d
commit
1f71523a5a
|
@ -69,13 +69,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||||
m_config = config.Configs["IRC"];
|
m_config = config.Configs["IRC"];
|
||||||
if (m_config == null)
|
if (m_config == null)
|
||||||
{
|
{
|
||||||
m_log.InfoFormat("[IRC-Bridge] module not configured");
|
// m_log.InfoFormat("[IRC-Bridge] module not configured");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_config.GetBoolean("enabled", false))
|
if (!m_config.GetBoolean("enabled", false))
|
||||||
{
|
{
|
||||||
m_log.InfoFormat("[IRC-Bridge] module disabled in configuration");
|
// m_log.InfoFormat("[IRC-Bridge] module disabled in configuration");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pluginEnabled = true;
|
m_pluginEnabled = true;
|
||||||
|
m_log.InfoFormat("[IRC-Bridge]: Module enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddRegion(Scene scene)
|
public void AddRegion(Scene scene)
|
||||||
|
@ -143,7 +144,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||||
|
|
||||||
public static XmlRpcResponse XmlRpcAdminMethod(XmlRpcRequest request, IPEndPoint remoteClient)
|
public static XmlRpcResponse XmlRpcAdminMethod(XmlRpcRequest request, IPEndPoint remoteClient)
|
||||||
{
|
{
|
||||||
m_log.Info("[IRC-Bridge]: XML RPC Admin Entry");
|
m_log.Debug("[IRC-Bridge]: XML RPC Admin Entry");
|
||||||
|
|
||||||
XmlRpcResponse response = new XmlRpcResponse();
|
XmlRpcResponse response = new XmlRpcResponse();
|
||||||
Hashtable responseData = new Hashtable();
|
Hashtable responseData = new Hashtable();
|
||||||
|
@ -188,7 +189,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.InfoFormat("[IRC-Bridge] XML RPC Admin request failed : {0}", e.Message);
|
m_log.ErrorFormat("[IRC-Bridge] XML RPC Admin request failed : {0}", e.Message);
|
||||||
|
|
||||||
responseData["success"] = "false";
|
responseData["success"] = "false";
|
||||||
responseData["error"] = e.Message;
|
responseData["error"] = e.Message;
|
||||||
|
|
Loading…
Reference in New Issue