diff --git a/mistralclient/api/httpclient.py b/mistralclient/api/httpclient.py index aeb2de8a..f355cca6 100644 --- a/mistralclient/api/httpclient.py +++ b/mistralclient/api/httpclient.py @@ -50,8 +50,8 @@ LOG = logging.getLogger(__name__) def log_request(func): def decorator(self, *args, **kwargs): resp = func(self, *args, **kwargs) - LOG.debug("HTTP %s %s %d" % (resp.request.method, resp.url, - resp.status_code)) + LOG.debug("HTTP %s %s %d", resp.request.method, resp.url, + resp.status_code) return resp return decorator diff --git a/mistralclient/auth/keycloak.py b/mistralclient/auth/keycloak.py index b502efa5..2f5bc7df 100644 --- a/mistralclient/auth/keycloak.py +++ b/mistralclient/auth/keycloak.py @@ -145,10 +145,8 @@ class KeycloakAuthHandler(auth.AuthHandler): except Exception as e: raise Exception("Failed to get access token:\n %s" % str(e)) - LOG.debug( - "HTTP response from OIDC provider: %s" % - pprint.pformat(resp.json()) - ) + LOG.debug("HTTP response from OIDC provider: %s", + pprint.pformat(resp.json())) return resp.json()['access_token']