Add more stack trace information to some messaging server exceptions

0.6.8-post-fixes
Justin Clark-Casey (justincc) 2009-12-01 12:34:44 +00:00
parent 39ff943b9c
commit 94b22e1d52
2 changed files with 11 additions and 6 deletions

View File

@ -124,12 +124,15 @@ namespace OpenSim.Grid.MessagingServer.Modules
else else
m_log.DebugFormat("[SERVER]: Registered with user service at {0}", srv); m_log.DebugFormat("[SERVER]: Registered with user service at {0}", srv);
} }
catch catch (Exception e)
{ {
m_log.ErrorFormat("Unable to connect to server {0}. Server not running?", srv); m_log.ErrorFormat(
"[SERVER]: Unable to connect to server {0} for registration. User service not running? Exception {1} {2}",
srv, e.Message, e.StackTrace);
success = false; success = false;
} }
} }
return success; return success;
} }
@ -176,9 +179,11 @@ namespace OpenSim.Grid.MessagingServer.Modules
if (!UserRespData.ContainsKey("responsestring")) if (!UserRespData.ContainsKey("responsestring"))
success = false; success = false;
} }
catch catch (Exception e)
{ {
m_log.ErrorFormat("Unable to connect to server {0}. Server not running?", srv); m_log.ErrorFormat(
"[SERVER]: Unable to connect to server {0} for send. Server not running? Exception {0} {1}",
srv, e.Message, e.StackTrace);
success = false; success = false;
} }
} }

View File

@ -350,7 +350,7 @@ namespace OpenSim.Grid.MessagingServer.Modules
ulong regionHandle = Convert.ToUInt64((string)requestData["regionhandle"]); ulong regionHandle = Convert.ToUInt64((string)requestData["regionhandle"]);
m_log.InfoFormat("[LOGIN]: User {0} {1} logged into region {2} as {3} agent, building indexes for user", m_log.DebugFormat("[LOGIN]: User {0} {1} logged into region {2} as {3} agent, building indexes for user",
agentData.firstname, agentData.lastname, regionHandle, agentData.child ? "child" : "root"); agentData.firstname, agentData.lastname, regionHandle, agentData.child ? "child" : "root");
UserPresenceData up = new UserPresenceData(); UserPresenceData up = new UserPresenceData();
@ -363,7 +363,7 @@ namespace OpenSim.Grid.MessagingServer.Modules
} }
catch (Exception e) catch (Exception e)
{ {
m_log.WarnFormat("[LOGIN]: Exception on UserLoggedOn: {0}", e); m_log.ErrorFormat("[LOGIN]: Exception on UserLoggedOn: {0} {1}", e.Message, e.StackTrace);
} }
return new XmlRpcResponse(); return new XmlRpcResponse();