root: fix logging.basicConfig being called by pyjwkest
This commit is contained in:
parent
22838e66fe
commit
2bf96828f1
|
@ -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
|
||||||
|
|
Reference in New Issue