mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-29 18:18:22 -04:00
more exc_info
This commit is contained in:
@@ -265,7 +265,7 @@ def init_app(app):
|
||||
|
||||
@app.errorhandler(Exception)
|
||||
def exception(error):
|
||||
app.logger.exception(error)
|
||||
app.logger.exception("Handling error:", exc_info=True)
|
||||
# error.code is set for our exception types.
|
||||
msg = getattr(error, "message", str(error))
|
||||
code = getattr(error, "code", 500)
|
||||
@@ -353,7 +353,9 @@ def setup_sqlalchemy_events(app):
|
||||
"url_rule": "unknown",
|
||||
}
|
||||
except Exception:
|
||||
current_app.logger.exception("Exception caught for checkout event.")
|
||||
current_app.logger.exception(
|
||||
"Exception caught for checkout event.", exc_info=True
|
||||
)
|
||||
|
||||
@event.listens_for(db.engine, "checkin")
|
||||
def checkin(dbapi_connection, connection_record): # noqa
|
||||
@@ -403,7 +405,8 @@ def make_task(app):
|
||||
"Celery task {task_name} (queue: {queue_name}) failed".format(
|
||||
task_name=self.name,
|
||||
queue_name=self.queue_name,
|
||||
)
|
||||
),
|
||||
exc_info=True,
|
||||
)
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user