Better error messages in RestClient

0.8.0.3
Oren Hurvitz 2014-04-03 16:10:53 +03:00
parent 6d2893be67
commit 01daa74adf
1 changed files with 2 additions and 3 deletions

View File

@ -318,12 +318,11 @@ namespace OpenSim.Framework.Communications
HttpWebResponse errorResponse = e.Response as HttpWebResponse;
if (null != errorResponse && HttpStatusCode.NotFound == errorResponse.StatusCode)
{
m_log.Warn("[REST CLIENT] Resource not found (404)");
m_log.WarnFormat("[REST CLIENT] Resource not found (404): {0}", _request.Address.ToString());
}
else
{
m_log.Error("[REST CLIENT] Error fetching resource from server " + _request.Address.ToString());
m_log.Debug(e.ToString());
m_log.Error(string.Format("[REST CLIENT] Error fetching resource from server: {0} ", _request.Address.ToString()), e);
}
return null;