From a46c9b0eea1d4a1d3440b03a1c76ead15c19e049 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 13 Feb 2009 18:02:24 +0000 Subject: * Quieten down log messages from the Friends module --- OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 14 +++++++------- .../Avatar/InstantMessage/MessageTransferModule.cs | 2 -- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/CoreModules/Avatar') diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index f4b46d5..f23f4e0 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs @@ -502,8 +502,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends // This event won't be raised unless we have that agent, // so we can depend on the above not trying to send // via grid again - m_log.DebugFormat("[FRIEND]: Got GridIM from {0}, to {1}, imSession {2}, message {3}, dialog {4}", - msg.fromAgentID, msg.toAgentID, msg.imSessionID, msg.message, msg.dialog); + //m_log.DebugFormat("[FRIEND]: Got GridIM from {0}, to {1}, imSession {2}, message {3}, dialog {4}", + // msg.fromAgentID, msg.toAgentID, msg.imSessionID, msg.message, msg.dialog); if (msg.dialog == (byte)InstantMessageDialog.FriendshipOffered || msg.dialog == (byte)InstantMessageDialog.FriendshipAccepted || @@ -512,7 +512,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends // this should succeed as we *know* the root agent is here. m_TransferModule.SendInstantMessage(msg, delegate(bool success) { - m_log.DebugFormat("[FRIEND]: sending IM success = {0}", success); + //m_log.DebugFormat("[FRIEND]: sending IM success = {0}", success); } ); } @@ -894,7 +894,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends ScenePresence agent = GetAnyPresenceFromAgentID(uuid); if (agent != null) { - m_log.DebugFormat("[FRIEND]: Found local agent {0}", agent.Name); + //m_log.DebugFormat("[FRIEND]: Found local agent {0}", agent.Name); // friend is online and on this server... if (iAmOnline) agent.ControllingClient.SendAgentOnline(agentArr); @@ -906,7 +906,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends } else { - m_log.DebugFormat("[FRIEND]: Friend {0} ({1}) is offline; not sending.", uuid, i); + //m_log.DebugFormat("[FRIEND]: Friend {0} ({1}) is offline; not sending.", uuid, i); // friend is offline => no need to try sending friendIDsToSendTo.RemoveAt(i); @@ -939,8 +939,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends // send bulk updates to the region foreach (KeyValuePair> pair in friendsInRegion) { - m_log.DebugFormat("[FRIEND]: Inform {0} friends in region {1} that user {2} is {3}line", - pair.Value.Count, pair.Key, client.Name, iAmOnline ? "on" : "off"); + //m_log.DebugFormat("[FRIEND]: Inform {0} friends in region {1} that user {2} is {3}line", + // pair.Value.Count, pair.Key, client.Name, iAmOnline ? "on" : "off"); friendIDsToSendTo.AddRange(m_initialScene.InformFriendsInOtherRegion(client.AgentId, pair.Key, pair.Value, iAmOnline)); } diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs index b38c5bb..38d2d21 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs @@ -526,7 +526,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage SendGridInstantMessageViaXMLRPCAsync(im, result, upd.Handle); } - } else { @@ -544,7 +543,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage m_log.WarnFormat("[GRID INSTANT MESSAGE]: Unable to find user {0}", toAgentID); result(false); } - } /// -- cgit v1.1