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>
|
/// <param name="request">UserServer Data</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public XmlRpcResponse UserLoggedOn(XmlRpcRequest request, IPEndPoint remoteClient)
|
public XmlRpcResponse UserLoggedOn(XmlRpcRequest request, IPEndPoint remoteClient)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
Hashtable requestData = (Hashtable)request.Params[0];
|
Hashtable requestData = (Hashtable)request.Params[0];
|
||||||
|
|
||||||
|
@ -361,7 +363,14 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
||||||
up.lookupUserRegionYN = false;
|
up.lookupUserRegionYN = false;
|
||||||
ProcessFriendListSubscriptions(up);
|
ProcessFriendListSubscriptions(up);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
m_log.WarnFormat("[LOGIN]: Exception on UserLoggedOn: {0}", e);
|
||||||
|
}
|
||||||
|
|
||||||
return new XmlRpcResponse();
|
return new XmlRpcResponse();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -371,12 +380,19 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public XmlRpcResponse UserLoggedOff(XmlRpcRequest request, IPEndPoint remoteClient)
|
public XmlRpcResponse UserLoggedOff(XmlRpcRequest request, IPEndPoint remoteClient)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
m_log.Info("[USERLOGOFF]: User logged off called");
|
m_log.Info("[USERLOGOFF]: User logged off called");
|
||||||
Hashtable requestData = (Hashtable)request.Params[0];
|
Hashtable requestData = (Hashtable)request.Params[0];
|
||||||
|
|
||||||
UUID AgentID = new UUID((string)requestData["agentid"]);
|
UUID AgentID = new UUID((string)requestData["agentid"]);
|
||||||
ProcessLogOff(AgentID);
|
ProcessLogOff(AgentID);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
m_log.WarnFormat("[USERLOGOFF]: Exception on UserLoggedOff: {0}", e);
|
||||||
|
}
|
||||||
|
|
||||||
return new XmlRpcResponse();
|
return new XmlRpcResponse();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue