diff options
author | Oren Hurvitz | 2014-04-03 16:10:53 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-04-03 14:13:22 +0100 |
commit | 01daa74adf64aceb9cb2aef718c84f452b4f29e9 (patch) | |
tree | d7a2467aec8a851b658b84f22fcbc0b5616df07c /OpenSim/Framework/Communications | |
parent | When teleporting using Hypergrid, show more informative error messages in cas... (diff) | |
download | opensim-SC-01daa74adf64aceb9cb2aef718c84f452b4f29e9.zip opensim-SC-01daa74adf64aceb9cb2aef718c84f452b4f29e9.tar.gz opensim-SC-01daa74adf64aceb9cb2aef718c84f452b4f29e9.tar.bz2 opensim-SC-01daa74adf64aceb9cb2aef718c84f452b4f29e9.tar.xz |
Better error messages in RestClient
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/RestClient.cs | 5 |
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; |