Minor fix for log message in rest_utils.py

TrivialFix


Change-Id: I0adbb40d2b779dea8fe4af3da9959f06aa311882
This commit is contained in:
junboli 2017-10-12 17:58:19 +08:00 committed by junbo.li
parent b5868e8be7
commit a7502caefd
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ def wrap_wsme_controller_exception(func):
except exc.QinlingException as e:
pecan.response.translatable_error = e
LOG.error('Error during API call: %s' % str(e))
LOG.error('Error during API call: %s', six.text_type(e))
raise wsme_exc.ClientSideError(
msg=six.text_type(e),
status_code=e.http_code
@ -61,7 +61,7 @@ def wrap_pecan_controller_exception(func):
try:
return func(*args, **kwargs)
except exc.QinlingException as e:
LOG.error('Error during API call: %s' % str(e))
LOG.error('Error during API call: %s', six.text_type(e))
return webob.Response(
status=e.http_code,
content_type='application/json',