Opened 15 years ago
Closed 13 years ago
#15630 closed Bug (fixed)
Add to docs information about the fact that unhandled exceptions are not logged if DEBUG=True
| Reported by: | Goldan | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Goldan | Triage Stage: | Accepted |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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 by , 15 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 15 years ago
| Type: | → Bug |
|---|
comment:3 by , 15 years ago
| Severity: | → Normal |
|---|
comment:4 by , 14 years ago
| UI/UX: | unset |
|---|
comment:6 by , 13 years ago
This report is either incorrect or I'm not understanding it as there's a logger.error statement in handle_uncaught_exception which logs exception regardless of settings.DEBUG.
Change UI/UX from NULL to False.