On a Grid Handler exception, explicitly log the exception message and stack trace so that we get somewhat better diagnostics on windows

0.7.1-dev
Justin Clark-Casey (justincc) 2011-02-24 00:55:50 +00:00
parent 1bb0bae78a
commit db7c758b7f
1 changed files with 2 additions and 2 deletions

View File

@ -115,15 +115,15 @@ namespace OpenSim.Server.Handlers.Grid
case "get_region_flags":
return GetRegionFlags(request);
}
m_log.DebugFormat("[GRID HANDLER]: unknown method {0} request {1}", method.Length, method);
}
catch (Exception e)
{
m_log.DebugFormat("[GRID HANDLER]: Exception {0}", e);
m_log.ErrorFormat("[GRID HANDLER]: Exception {0} {1}", e.Message, e.StackTrace);
}
return FailureResult();
}
#region Method-specific handlers