diff options
| author | Vincent Untz <vuntz@suse.com> | 2012-09-13 11:12:00 +0200 |
|---|---|---|
| committer | Vincent Untz <vuntz@suse.com> | 2012-09-13 11:12:00 +0200 |
| commit | 902bff79bbe52e831da947bb5ac5fce2330d810e (patch) | |
| tree | 858ca5872b0dfc2b4434b0dabf481c4aaf784925 | |
| parent | 8cee48b1ddf480d182bbc33ec684dcfd195b038c (diff) | |
| download | python-glanceclient-902bff79bbe52e831da947bb5ac5fce2330d810e.tar.gz | |
Fix weird "None" displayed on some errors
logging.exception() should only be called from an exception handler,
which is not the case here.
Part of bug 1050260.
Change-Id: I591a68c458cd733c04cea7d2d640afdbb7dd19f6
| -rw-r--r-- | glanceclient/common/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 4349e86..4a6ce53 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -155,7 +155,7 @@ class HTTPClient(object): self.log_http_response(resp) if 400 <= resp.status < 600: - LOG.exception("Request returned failure status.") + LOG.error("Request returned failure status.") raise exc.from_response(resp) elif resp.status in (301, 302, 305): # Redirected. Reissue the request to the new location. |
