diff --git a/magnumclient/common/httpclient.py b/magnumclient/common/httpclient.py index bc206f8d..1b72ad7b 100644 --- a/magnumclient/common/httpclient.py +++ b/magnumclient/common/httpclient.py @@ -172,7 +172,8 @@ class HTTPClient(object): self.log_http_response(resp) if 400 <= resp.status < 600: - LOG.warn("Request returned failure status.") + if LOG.handlers: + LOG.warn("Request returned failure status.") error_json = self._extract_error_json(body_str) raise exceptions.from_response( resp, error_json.get('faultstring'),