mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user