Prevent normal (Text) IM from being logged by the group message module in

debug mode.
Fixes Mantis #3609
This commit is contained in:
Melanie Thielker
2009-05-09 17:02:03 +00:00
parent e4236a4233
commit 93d54d7652

View File

@@ -496,7 +496,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
private void DebugGridInstantMessage(GridInstantMessage im)
{
if (m_debugEnabled)
// Don't log any normal IMs (privacy!)
if (m_debugEnabled && im.dialog != (byte)InstantMessageDialog.MessageFromAgent)
{
m_log.WarnFormat("[GROUPS-MESSAGING]: IM: fromGroup({0})", im.fromGroup ? "True" : "False");
m_log.WarnFormat("[GROUPS-MESSAGING]: IM: Dialog({0})", ((InstantMessageDialog)im.dialog).ToString());