Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#24526 closed Cleanup/optimization (fixed)

Default logging config filters out anything below ERROR for django.request/django.security loggers

Reported by: Tim Graham Owned by: Tim Graham
Component: Core (Other) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The fact that the django.request and django.security handlers define:

            'level': 'ERROR',
            'propagate': False,

makes it impossible to configure other handlers to catch these errors.

Change History (4)

comment:1 Changed 5 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:2 Changed 5 years ago by Tim Graham

Has patch: set

PR is now ready for review.

comment:3 Changed 5 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 8efea1b8:

Fixed #24526 -- Combined django.request/security loggers with the root logger.

Thanks Carl Meyer for review.

comment:4 Changed 4 years ago by Tim Graham <timograham@…>

In 6b377196:

Refs #24526 -- Made the django logger handle INFO messages.

Without an explicit 'level', only messages at WARNING or higher
are handled. This makes the config consistent with the docs
which say, "The django catch-all logger sends all messages at
the INFO level or higher to the console."

Note: See TracTickets for help on using tickets.
Back to Top