aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2009-12-01 12:34:44 +0000
committerJustin Clark-Casey (justincc)2009-12-01 12:34:44 +0000
commit94b22e1d52d4763e2fcde8539748040de47f943b (patch)
tree986c4ffa960bdfe67c3d20f0c963c76d73d8d6a1
parentminor: make logging messages more consistent (diff)
downloadopensim-SC-94b22e1d52d4763e2fcde8539748040de47f943b.zip
opensim-SC-94b22e1d52d4763e2fcde8539748040de47f943b.tar.gz
opensim-SC-94b22e1d52d4763e2fcde8539748040de47f943b.tar.bz2
opensim-SC-94b22e1d52d4763e2fcde8539748040de47f943b.tar.xz
Add more stack trace information to some messaging server exceptions
-rw-r--r--OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs13
-rw-r--r--OpenSim/Grid/MessagingServer.Modules/MessageService.cs4
2 files changed, 11 insertions, 6 deletions
diff --git a/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs b/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs
index 90490dc..662dad3 100644
--- a/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs
+++ b/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs
@@ -124,12 +124,15 @@ namespace OpenSim.Grid.MessagingServer.Modules
124 else 124 else
125 m_log.DebugFormat("[SERVER]: Registered with user service at {0}", srv); 125 m_log.DebugFormat("[SERVER]: Registered with user service at {0}", srv);
126 } 126 }
127 catch 127 catch (Exception e)
128 { 128 {
129 m_log.ErrorFormat("Unable to connect to server {0}. Server not running?", srv); 129 m_log.ErrorFormat(
130 "[SERVER]: Unable to connect to server {0} for registration. User service not running? Exception {1} {2}",
131 srv, e.Message, e.StackTrace);
130 success = false; 132 success = false;
131 } 133 }
132 } 134 }
135
133 return success; 136 return success;
134 } 137 }
135 138
@@ -176,9 +179,11 @@ namespace OpenSim.Grid.MessagingServer.Modules
176 if (!UserRespData.ContainsKey("responsestring")) 179 if (!UserRespData.ContainsKey("responsestring"))
177 success = false; 180 success = false;
178 } 181 }
179 catch 182 catch (Exception e)
180 { 183 {
181 m_log.ErrorFormat("Unable to connect to server {0}. Server not running?", srv); 184 m_log.ErrorFormat(
185 "[SERVER]: Unable to connect to server {0} for send. Server not running? Exception {0} {1}",
186 srv, e.Message, e.StackTrace);
182 success = false; 187 success = false;
183 } 188 }
184 } 189 }
diff --git a/OpenSim/Grid/MessagingServer.Modules/MessageService.cs b/OpenSim/Grid/MessagingServer.Modules/MessageService.cs
index 76784e5..3ab93a3 100644
--- a/OpenSim/Grid/MessagingServer.Modules/MessageService.cs
+++ b/OpenSim/Grid/MessagingServer.Modules/MessageService.cs
@@ -350,7 +350,7 @@ namespace OpenSim.Grid.MessagingServer.Modules
350 350
351 ulong regionHandle = Convert.ToUInt64((string)requestData["regionhandle"]); 351 ulong regionHandle = Convert.ToUInt64((string)requestData["regionhandle"]);
352 352
353 m_log.InfoFormat("[LOGIN]: User {0} {1} logged into region {2} as {3} agent, building indexes for user", 353 m_log.DebugFormat("[LOGIN]: User {0} {1} logged into region {2} as {3} agent, building indexes for user",
354 agentData.firstname, agentData.lastname, regionHandle, agentData.child ? "child" : "root"); 354 agentData.firstname, agentData.lastname, regionHandle, agentData.child ? "child" : "root");
355 355
356 UserPresenceData up = new UserPresenceData(); 356 UserPresenceData up = new UserPresenceData();
@@ -363,7 +363,7 @@ namespace OpenSim.Grid.MessagingServer.Modules
363 } 363 }
364 catch (Exception e) 364 catch (Exception e)
365 { 365 {
366 m_log.WarnFormat("[LOGIN]: Exception on UserLoggedOn: {0}", e); 366 m_log.ErrorFormat("[LOGIN]: Exception on UserLoggedOn: {0} {1}", e.Message, e.StackTrace);
367 } 367 }
368 368
369 return new XmlRpcResponse(); 369 return new XmlRpcResponse();