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

@ -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'