aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-03 16:10:53 +0300
committerOren Hurvitz2014-04-03 14:13:22 +0100
commit01daa74adf64aceb9cb2aef718c84f452b4f29e9 (patch)
treed7a2467aec8a851b658b84f22fcbc0b5616df07c
parentWhen teleporting using Hypergrid, show more informative error messages in cas... (diff)
downloadopensim-SC_OLD-01daa74adf64aceb9cb2aef718c84f452b4f29e9.zip
opensim-SC_OLD-01daa74adf64aceb9cb2aef718c84f452b4f29e9.tar.gz
opensim-SC_OLD-01daa74adf64aceb9cb2aef718c84f452b4f29e9.tar.bz2
opensim-SC_OLD-01daa74adf64aceb9cb2aef718c84f452b4f29e9.tar.xz
Better error messages in RestClient
-rw-r--r--OpenSim/Framework/Communications/RestClient.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs
index 97b3b60..2275e31 100644
--- a/OpenSim/Framework/Communications/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient.cs
@@ -318,12 +318,11 @@ namespace OpenSim.Framework.Communications
318 HttpWebResponse errorResponse = e.Response as HttpWebResponse; 318 HttpWebResponse errorResponse = e.Response as HttpWebResponse;
319 if (null != errorResponse && HttpStatusCode.NotFound == errorResponse.StatusCode) 319 if (null != errorResponse && HttpStatusCode.NotFound == errorResponse.StatusCode)
320 { 320 {
321 m_log.Warn("[REST CLIENT] Resource not found (404)"); 321 m_log.WarnFormat("[REST CLIENT] Resource not found (404): {0}", _request.Address.ToString());
322 } 322 }
323 else 323 else
324 { 324 {
325 m_log.Error("[REST CLIENT] Error fetching resource from server " + _request.Address.ToString()); 325 m_log.Error(string.Format("[REST CLIENT] Error fetching resource from server: {0} ", _request.Address.ToString()), e);
326 m_log.Debug(e.ToString());
327 } 326 }
328 327
329 return null; 328 return null;