Merge "Log the traceback in _handle_keystone_exception"
This commit is contained in:
commit
884f88148b
|
@ -81,10 +81,8 @@ def _handle_keystone_exception(error):
|
|||
LOG.warning(
|
||||
"Authorization failed. %(exception)s from %(remote_addr)s",
|
||||
{'exception': error, 'remote_addr': flask.request.remote_addr})
|
||||
elif isinstance(error, exception.UnexpectedError):
|
||||
LOG.exception(str(error))
|
||||
else:
|
||||
LOG.warning(str(error))
|
||||
LOG.exception(str(error))
|
||||
|
||||
# Render the exception to something user "friendly"
|
||||
error_message = error.args[0]
|
||||
|
|
Loading…
Reference in New Issue