root: fix logging.basicConfig being called by pyjwkest

This commit is contained in:
Jens Langhammer 2020-02-24 15:30:28 +01:00
parent 22838e66fe
commit 2bf96828f1
1 changed files with 3 additions and 2 deletions

View File

@ -317,7 +317,7 @@ LOGGING = {
}, },
"handlers": { "handlers": {
"console": { "console": {
"level": DEBUG, "level": "DEBUG",
"class": "logging.StreamHandler", "class": "logging.StreamHandler",
"formatter": "colored" if DEBUG else "plain", "formatter": "colored" if DEBUG else "plain",
}, },
@ -325,6 +325,7 @@ LOGGING = {
"loggers": {}, "loggers": {},
} }
_LOGGING_HANDLER_MAP = { _LOGGING_HANDLER_MAP = {
"": "DEBUG",
"passbook": "DEBUG", "passbook": "DEBUG",
"django": "WARNING", "django": "WARNING",
"celery": "WARNING", "celery": "WARNING",
@ -337,7 +338,7 @@ for handler_name, level in _LOGGING_HANDLER_MAP.items():
LOGGING["loggers"][handler_name] = { LOGGING["loggers"][handler_name] = {
"handlers": ["console"], "handlers": ["console"],
"level": level, "level": level,
"propagate": True, "propagate": False,
} }
TEST = False TEST = False