Browse Source

Merge "Fix inner has no attribute 'message'"

stable/victoria
Zuul 7 months ago
committed by Gerrit Code Review
parent
commit
3881b44968
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      karbor/api/middleware/fault.py

+ 3
- 1
karbor/api/middleware/fault.py View File

@ -39,7 +39,9 @@ class FaultWrapper(base_wsgi.Middleware):
status, webob.exc.HTTPInternalServerError)()
def _error(self, inner, req):
LOG.error('Middleware error occurred: %s', inner.message)
LOG.error('Middleware error occurred: %(type)s %(error)s',
{'type': type(inner),
'error': inner})
safe = getattr(inner, 'safe', False)
headers = getattr(inner, 'headers', None)
status = getattr(inner, 'code', http_client.INTERNAL_SERVER_ERROR)


Loading…
Cancel
Save