Add to docs information about the fact that unhandled exceptions are not logged if DEBUG=True
|Reported by:||Goldan||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I failed to find the following valuable information in the documentation.
If DEBUG=True, logger.error() function is never called for unhandled exceptions (that cause the 500 error). See django/core/handlers/base.py, function handle_uncaught_exception(). So the information about the exception is not logged anywhere.
It took me some time to figure it out, so I think it should be mentioned in the docs.
Change History (7)
comment:1 Changed 4 years ago by julien
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted