Logging cleanup
Change-Id: Iebd3928ed0b483770d1c47b66e26eb8be249d720
This commit is contained in:
@@ -393,7 +393,7 @@ def exception_handler():
|
||||
except Exception as e:
|
||||
if isinstance(e, exceptions.HTTPException):
|
||||
raise # ignore Flask exceptions
|
||||
LOG.exception(e)
|
||||
LOG.error(e, exc_info=True)
|
||||
flask.abort(404)
|
||||
|
||||
return exception_handler_decorated_function
|
||||
|
||||
@@ -86,8 +86,8 @@ def get_vault():
|
||||
|
||||
flask.current_app.stackalytics_vault = vault
|
||||
except Exception as e:
|
||||
LOG.critical('Failed to initialize application: %s', e)
|
||||
LOG.exception(e)
|
||||
LOG.critical('Failed to initialize application: %s', e,
|
||||
exc_info=True)
|
||||
flask.abort(500)
|
||||
|
||||
if not getattr(flask.request, 'stackalytics_updated', None):
|
||||
|
||||
Reference in New Issue
Block a user