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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user