diff options
| author | haobing1 <hao.bing1@zte.com.cn> | 2016-07-12 21:11:05 +0800 |
|---|---|---|
| committer | haobing <hao.bing1@zte.com.cn> | 2016-07-18 05:34:46 +0000 |
| commit | 2d7b864b1715f0569e37e3be55d6c6b0461c5cd5 (patch) | |
| tree | 74fb820eeea98a2079eb201df72bff73941468e4 /glanceclient/common/http.py | |
| parent | 13093e019416894a4bd940d569bab4c3c0b84485 (diff) | |
| download | python-glanceclient-2d7b864b1715f0569e37e3be55d6c6b0461c5cd5.tar.gz | |
Fix string interpolation to delayed to be handled by the logging code
String interpolation should be delayed to be handled by the logging
code, rather than being done at the point of the logging call.
See the oslo i18n guideline.
* http://docs.openstack.org/developer/oslo.i18n/guidelines.html
Change-Id: If06663076e4081c6268ba88c157513723b734b31
Closes-Bug: #1596829
Diffstat (limited to 'glanceclient/common/http.py')
| -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 0eb42de..2c21123 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -93,7 +93,7 @@ class _BaseHTTPClient(object): def _handle_response(self, resp): if not resp.ok: - LOG.debug("Request returned failure status %s." % resp.status_code) + LOG.debug("Request returned failure status %s.", resp.status_code) raise exc.from_response(resp, resp.content) elif (resp.status_code == requests.codes.MULTIPLE_CHOICES and resp.request.path_url != '/versions'): |
