From 8e146ca5008b97f3cbdd09ee1171dfe58f40998e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sun, 19 Jan 2014 20:02:42 -0500 Subject: [PATCH] server 500 should not be a client error the client should not log a server 50x response at ERROR level. It already throws an exception, so the caller can care about what it wants to do with this. This error will show up regularly in nova that succeed, and there is no way to disable this message, which isn't an error from Nova's perspective without turning off *all* the logs. Set this to debug instead, because from a caller perspective that's what you want out of this. Change-Id: I6d0efb53d1e81adf309f7fa580ec5a8073a811c5 --- glanceclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 91c46d7a..e113bbf5 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -245,7 +245,7 @@ class HTTPClient(object): self.log_http_response(resp) if 400 <= resp.status < 600: - LOG.error("Request returned failure status.") + LOG.debug("Request returned failure status: %d" % resp.status) raise exc.from_response(resp, body_str) elif resp.status in (301, 302, 305): # Redirected. Reissue the request to the new location.