mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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:
parent
7cb3a48843
commit
6b37719616
4 changed files with 34 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
import atexit
|
||||
import copy
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
|
@ -154,7 +155,7 @@ def setup(verbosity, test_labels, parallel):
|
|||
'contenttypes': 'contenttypes_tests.migrations',
|
||||
'sessions': 'sessions_tests.migrations',
|
||||
}
|
||||
log_config = DEFAULT_LOGGING
|
||||
log_config = copy.deepcopy(DEFAULT_LOGGING)
|
||||
# Filter out non-error logging so we don't have to capture it in lots of
|
||||
# tests.
|
||||
log_config['loggers']['django']['level'] = 'ERROR'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue