Catch and print exceptions in MessagingService, to diagnose mysterious disappearances of the Messaging server.
parent
133a4a9906
commit
94783e9377
|
@ -323,6 +323,8 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
|||
/// <param name="request">UserServer Data</param>
|
||||
/// <returns></returns>
|
||||
public XmlRpcResponse UserLoggedOn(XmlRpcRequest request, IPEndPoint remoteClient)
|
||||
{
|
||||
try
|
||||
{
|
||||
Hashtable requestData = (Hashtable)request.Params[0];
|
||||
|
||||
|
@ -361,7 +363,14 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
|||
up.lookupUserRegionYN = false;
|
||||
ProcessFriendListSubscriptions(up);
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.WarnFormat("[LOGIN]: Exception on UserLoggedOn: {0}", e);
|
||||
}
|
||||
|
||||
return new XmlRpcResponse();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -371,12 +380,19 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
|||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
public XmlRpcResponse UserLoggedOff(XmlRpcRequest request, IPEndPoint remoteClient)
|
||||
{
|
||||
try
|
||||
{
|
||||
m_log.Info("[USERLOGOFF]: User logged off called");
|
||||
Hashtable requestData = (Hashtable)request.Params[0];
|
||||
|
||||
UUID AgentID = new UUID((string)requestData["agentid"]);
|
||||
ProcessLogOff(AgentID);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.WarnFormat("[USERLOGOFF]: Exception on UserLoggedOff: {0}", e);
|
||||
}
|
||||
|
||||
return new XmlRpcResponse();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue