aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMike Mazur2009-02-25 02:14:19 +0000
committerMike Mazur2009-02-25 02:14:19 +0000
commit72be38f7ae94a954a451f37d44e2e1b1341ff4dd (patch)
tree3501c55a0485ea34bd1e295425d1e1b523450887 /OpenSim
parentA few updates necessary for load balancer. (diff)
downloadopensim-SC_OLD-72be38f7ae94a954a451f37d44e2e1b1341ff4dd.zip
opensim-SC_OLD-72be38f7ae94a954a451f37d44e2e1b1341ff4dd.tar.gz
opensim-SC_OLD-72be38f7ae94a954a451f37d44e2e1b1341ff4dd.tar.bz2
opensim-SC_OLD-72be38f7ae94a954a451f37d44e2e1b1341ff4dd.tar.xz
Distinguish 404 errors in RestClient.Request().
Mantis #3225.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Communications/RestClient.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs
index 69932fc..3035da5 100644
--- a/OpenSim/Framework/Communications/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient.cs
@@ -293,8 +293,16 @@ namespace OpenSim.Framework.Communications
293 } 293 }
294 catch (WebException e) 294 catch (WebException e)
295 { 295 {
296 m_log.ErrorFormat("[ASSET] Error fetching asset from asset server"); 296 HttpWebResponse errorResponse = e.Response as HttpWebResponse;
297 m_log.Debug(e.ToString()); 297 if (null != errorResponse && HttpStatusCode.NotFound == errorResponse.StatusCode)
298 {
299 m_log.Warn("[ASSET] Asset not found (404)");
300 }
301 else
302 {
303 m_log.Error("[ASSET] Error fetching asset from asset server");
304 m_log.Debug(e.ToString());
305 }
298 306
299 return null; 307 return null;
300 } 308 }