Code

Opened 3 years ago

Closed 18 months 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: master
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.

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by lukeplant

  • Type set to Bug

comment:3 Changed 3 years ago by lukeplant

  • Severity set to Normal

comment:4 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:5 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:6 Changed 18 months ago by timo

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.

comment:7 Changed 18 months ago by ptone

  • Resolution set to fixed
  • Status changed from new to closed

fixed with #16288

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.