Merge "Log the traceback in _handle_keystone_exception"

This commit is contained in:
Zuul
2022-04-29 17:59:48 +00:00
committed by Gerrit Code Review
+1 -3
View File
@@ -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]