Improve some logging in LandConnector

This also eliminate the last 'OGS1' logging message (in this case, an erroneous one)
prebuild-update
Justin Clark-Casey (justincc) 2010-08-19 01:57:07 +01:00
parent a72c7812f4
commit d547007e73
1 changed files with 10 additions and 6 deletions

View File

@ -88,7 +88,7 @@ namespace OpenSim.Services.Connectors
XmlRpcResponse response = request.Send(uri, 10000); XmlRpcResponse response = request.Send(uri, 10000);
if (response.IsFault) if (response.IsFault)
{ {
m_log.ErrorFormat("[LAND CONNECTOR] remote call returned an error: {0}", response.FaultString); m_log.ErrorFormat("[LAND CONNECTOR]: remote call returned an error: {0}", response.FaultString);
} }
else else
{ {
@ -110,19 +110,23 @@ namespace OpenSim.Services.Connectors
landData.UserLocation = Vector3.Parse((string)hash["UserLocation"]); landData.UserLocation = Vector3.Parse((string)hash["UserLocation"]);
if (hash["RegionAccess"] != null) if (hash["RegionAccess"] != null)
regionAccess = (byte)Convert.ToInt32((string)hash["RegionAccess"]); regionAccess = (byte)Convert.ToInt32((string)hash["RegionAccess"]);
m_log.DebugFormat("[OGS1 GRID SERVICES] Got land data for parcel {0}", landData.Name); m_log.DebugFormat("[LAND CONNECTOR]: Got land data for parcel {0}", landData.Name);
} }
catch (Exception e) catch (Exception e)
{ {
m_log.Error("[LAND CONNECTOR] Got exception while parsing land-data:", e); m_log.ErrorFormat(
"[LAND CONNECTOR]: Got exception while parsing land-data: {0} {1}",
e.Message, e.StackTrace);
} }
} }
} }
else m_log.WarnFormat("[LAND CONNECTOR] Couldn't find region with handle {0}", regionHandle); else
m_log.WarnFormat("[LAND CONNECTOR]: Couldn't find region with handle {0}", regionHandle);
} }
catch (Exception e) catch (Exception e)
{ {
m_log.ErrorFormat("[LAND CONNECTOR] Couldn't contact region {0}: {1}", regionHandle, e); m_log.ErrorFormat(
"[LAND CONNECTOR]: Couldn't contact region {0}: {1} {2}", regionHandle, e.Message, e.StackTrace);
} }
return landData; return landData;