1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

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."
This commit is contained in:
Tim Graham
2015-09-15 14:13:34 -04:00
parent 7cb3a48843
commit 6b37719616
4 changed files with 34 additions and 3 deletions

View File

@@ -827,7 +827,8 @@ Changes to the default logging configuration
To make it easier to write custom logging configurations, Django's default
logging configuration no longer defines 'django.request' and 'django.security'
loggers. Instead, it defines a single 'django' logger with two handlers:
loggers. Instead, it defines a single 'django' logger, filtered at the ``INFO``
level, with two handlers:
* 'console': filtered at the ``INFO`` level and only active if ``DEBUG=True``.
* 'mail_admins': filtered at the ``ERROR`` level and only active if