Browse Source

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
tags/2.3.0
haobing1 3 years ago
parent
commit
2d7b864b17
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      glanceclient/common/http.py

+ 1
- 1
glanceclient/common/http.py View File

@@ -93,7 +93,7 @@ class _BaseHTTPClient(object):
93 93
 
94 94
     def _handle_response(self, resp):
95 95
         if not resp.ok:
96
-            LOG.debug("Request returned failure status %s." % resp.status_code)
96
+            LOG.debug("Request returned failure status %s.", resp.status_code)
97 97
             raise exc.from_response(resp, resp.content)
98 98
         elif (resp.status_code == requests.codes.MULTIPLE_CHOICES and
99 99
               resp.request.path_url != '/versions'):

Loading…
Cancel
Save