add extra logging on message service registrations with the user service

this is to aid in diagnosing http://opensimulator.org/mantis/view.php?id=4351
0.6.8-post-fixes
Justin Clark-Casey (justincc) 2009-12-03 18:03:19 +00:00
parent d7dc0381b8
commit 73045c5c43
1 changed files with 29 additions and 19 deletions

View File

@ -167,27 +167,37 @@ namespace OpenSim.Grid.UserServer.Modules
} }
public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient) public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient)
{ {
m_log.DebugFormat(
"[MSGSERVER]: Beginning processing message service registration request from {0}",
remoteClient.Address);
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();
if (requestData.Contains("uri")) if (requestData.Contains("uri"))
{ {
string URI = (string)requestData["uri"]; string URI = (string)requestData["uri"];
string sendkey=(string)requestData["sendkey"]; string sendkey = (string)requestData["sendkey"];
string recvkey=(string)requestData["recvkey"]; string recvkey = (string)requestData["recvkey"];
MessageServerInfo m = new MessageServerInfo(); MessageServerInfo m = new MessageServerInfo();
m.URI = URI; m.URI = URI;
m.sendkey = sendkey; m.sendkey = sendkey;
m.recvkey = recvkey; m.recvkey = recvkey;
RegisterMessageServer(URI, m); RegisterMessageServer(URI, m);
responseData["responsestring"] = "TRUE"; responseData["responsestring"] = "TRUE";
response.Value = responseData; response.Value = responseData;
m_log.DebugFormat( m_log.DebugFormat(
"[MSGSERVER]: Successfully processed message service registration request from {0}", "[MSGSERVER]: Successfully processed message service registration request from {0}",
remoteClient.Address); remoteClient.Address);
}
else
{
m_log.ErrorFormat(
"[MSGSERVER]: Message service registration request from {0} did not contain a uri, not registering",
remoteClient.Address);
} }
return response; return response;