-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Description
The exc_info=True parameter in the exception handlers doesn't actually do anything because the log statement isn't within a except block. It should either be removed or updated to explicitly pass in exception traceback so it is logged:
exc = Exception
logger.error(
"My error message",
exc_info=(type(exc), exc, exc.__traceback__)
)Logging every exception that triggers a handler might be overkill, we may just want to log traceback on 5XX responses?