diff options
author | Justin Clark-Casey (justincc) | 2010-10-18 23:21:34 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-10-19 02:04:14 +0100 |
commit | b9bef50852cecab6e6fba75d44d4ee2306072299 (patch) | |
tree | 78f0aeffe8857d72bf54e44ff482988cafb50624 /OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups | |
parent | Drop max oar loading version back to 0 from 1 (diff) | |
download | opensim-SC_OLD-b9bef50852cecab6e6fba75d44d4ee2306072299.zip opensim-SC_OLD-b9bef50852cecab6e6fba75d44d4ee2306072299.tar.gz opensim-SC_OLD-b9bef50852cecab6e6fba75d44d4ee2306072299.tar.bz2 opensim-SC_OLD-b9bef50852cecab6e6fba75d44d4ee2306072299.tar.xz |
Display more information when xmlrpcgroupsserver comms fails
Improve debugging messages
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs | 17 | ||||
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs | 10 |
2 files changed, 14 insertions, 13 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs index 185d44d..d178e18 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs | |||
@@ -212,12 +212,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
212 | 212 | ||
213 | public void SendMessageToGroup(GridInstantMessage im, UUID groupID) | 213 | public void SendMessageToGroup(GridInstantMessage im, UUID groupID) |
214 | { | 214 | { |
215 | List<GroupMembersData> groupMembers = m_groupData.GetGroupMembers(UUID.Zero, groupID); | ||
216 | |||
215 | if (m_debugEnabled) | 217 | if (m_debugEnabled) |
216 | m_log.DebugFormat("[GROUPS-MESSAGING]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 218 | m_log.DebugFormat( |
217 | 219 | "[GROUPS-MESSAGING]: SendMessageToGroup called for group {0} with {1} members", | |
218 | 220 | groupID, groupMembers.Count); | |
219 | foreach (GroupMembersData member in m_groupData.GetGroupMembers(UUID.Zero, groupID)) | 221 | |
220 | { | 222 | foreach (GroupMembersData member in groupMembers) |
223 | { | ||
221 | if (m_groupData.hasAgentDroppedGroupChatSession(member.AgentID, groupID)) | 224 | if (m_groupData.hasAgentDroppedGroupChatSession(member.AgentID, groupID)) |
222 | { | 225 | { |
223 | // Don't deliver messages to people who have dropped this session | 226 | // Don't deliver messages to people who have dropped this session |
@@ -263,9 +266,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
263 | 266 | ||
264 | void OnClientLogin(IClientAPI client) | 267 | void OnClientLogin(IClientAPI client) |
265 | { | 268 | { |
266 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS-MESSAGING]: OnInstantMessage registered for {0}", client.Name); | 269 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS-MESSAGING]: OnInstantMessage registered for {0}", client.Name); |
267 | |||
268 | |||
269 | } | 270 | } |
270 | 271 | ||
271 | private void OnNewClient(IClientAPI client) | 272 | private void OnNewClient(IClientAPI client) |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs index 5fabbb0..2631ac1 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs | |||
@@ -641,11 +641,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
641 | } | 641 | } |
642 | 642 | ||
643 | return Roles; | 643 | return Roles; |
644 | |||
645 | } | 644 | } |
646 | 645 | ||
647 | |||
648 | |||
649 | public List<GroupMembersData> GetGroupMembers(UUID requestingAgentID, UUID GroupID) | 646 | public List<GroupMembersData> GetGroupMembers(UUID requestingAgentID, UUID GroupID) |
650 | { | 647 | { |
651 | Hashtable param = new Hashtable(); | 648 | Hashtable param = new Hashtable(); |
@@ -988,8 +985,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
988 | } | 985 | } |
989 | catch (Exception e) | 986 | catch (Exception e) |
990 | { | 987 | { |
991 | m_log.ErrorFormat("[XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method: {0}", function); | 988 | m_log.ErrorFormat( |
992 | m_log.ErrorFormat("[XMLRPC-GROUPS-CONNECTOR]: {0} ", e.ToString()); | 989 | "[XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method {0} at {1}", |
990 | function, m_groupsServerURI); | ||
991 | |||
992 | m_log.ErrorFormat("[XMLRPC-GROUPS-CONNECTOR]: {0}{1}", e.Message, e.StackTrace); | ||
993 | 993 | ||
994 | foreach (string ResponseLine in req.RequestResponse.Split(new string[] { Environment.NewLine }, StringSplitOptions.None)) | 994 | foreach (string ResponseLine in req.RequestResponse.Split(new string[] { Environment.NewLine }, StringSplitOptions.None)) |
995 | { | 995 | { |