Better error messages in RestClient
parent
6d2893be67
commit
01daa74adf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue