Add more log messages for message service/user service get_friends_list interaction

0.6.8-post-fixes
justincc 2009-12-17 18:15:00 +00:00
parent 136476aaf3
commit 9aee2bc8e7
2 changed files with 14 additions and 6 deletions

View File

@ -259,7 +259,11 @@ namespace OpenSim.Grid.MessagingServer.Modules
/// </summary> /// </summary>
/// <param name="friendlistowner">The agent that we're retreiving the friends Data for.</param> /// <param name="friendlistowner">The agent that we're retreiving the friends Data for.</param>
private Dictionary<UUID, FriendListItem> GetUserFriendList(UUID friendlistowner) private Dictionary<UUID, FriendListItem> GetUserFriendList(UUID friendlistowner)
{ {
m_log.DebugFormat(
"[MESSAGE SERVICE]: Requesting friends list for {0} from {1}",
friendlistowner, m_cfg.UserServerURL);
Dictionary<UUID, FriendListItem> buddies = new Dictionary<UUID,FriendListItem>(); Dictionary<UUID, FriendListItem> buddies = new Dictionary<UUID,FriendListItem>();
try try

View File

@ -43,7 +43,7 @@ namespace OpenSim.Grid.UserServer.Modules
{ {
public class UserServerFriendsModule public class UserServerFriendsModule
{ {
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private UserDataBaseService m_userDataBaseService; private UserDataBaseService m_userDataBaseService;
@ -56,12 +56,10 @@ namespace OpenSim.Grid.UserServer.Modules
public void Initialise(IGridServiceCore core) public void Initialise(IGridServiceCore core)
{ {
} }
public void PostInitialise() public void PostInitialise()
{ {
} }
public void RegisterHandlers(BaseHttpServer httpServer) public void RegisterHandlers(BaseHttpServer httpServer)
@ -158,7 +156,10 @@ namespace OpenSim.Grid.UserServer.Modules
} }
public XmlRpcResponse XmlRpcResponseXmlRPCGetUserFriendList(XmlRpcRequest request, IPEndPoint remoteClient) public XmlRpcResponse XmlRpcResponseXmlRPCGetUserFriendList(XmlRpcRequest request, IPEndPoint remoteClient)
{ {
m_log.DebugFormat(
"[USER SERVER FRIENDS MODULE]: BEGIN XmlRpcResponseXmlRPCGetUserFriendList from {0}", remoteClient);
// XmlRpcResponse response = new XmlRpcResponse(); // XmlRpcResponse response = new XmlRpcResponse();
Hashtable requestData = (Hashtable)request.Params[0]; Hashtable requestData = (Hashtable)request.Params[0];
// Hashtable responseData = new Hashtable(); // Hashtable responseData = new Hashtable();
@ -168,7 +169,10 @@ namespace OpenSim.Grid.UserServer.Modules
if (requestData.Contains("ownerID")) if (requestData.Contains("ownerID"))
{ {
returndata = m_userDataBaseService.GetUserFriendList(new UUID((string)requestData["ownerID"])); returndata = m_userDataBaseService.GetUserFriendList(new UUID((string)requestData["ownerID"]));
} }
m_log.DebugFormat(
"[USER SERVER FRIENDS MODULE]: END XmlRpcResponseXmlRPCGetUserFriendList from {0}", remoteClient);
return FriendListItemListtoXmlRPCResponse(returndata); return FriendListItemListtoXmlRPCResponse(returndata);
} }