fix the logger and make it work (#1397)

* fix the logger and make it work

* modify test_logging parameters and add a new unit test
This commit is contained in:
Meng Wang
2018-11-06 22:39:38 +08:00
committed by Stephen Sadowski
parent e3a27c2cc4
commit b63c06c75a
2 changed files with 16 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ LOGGING_CONFIG_DEFAULTS = dict(
version=1,
disable_existing_loggers=False,
loggers={
"root": {"level": "INFO", "handlers": ["console"]},
"sanic.root": {"level": "INFO", "handlers": ["console"]},
"sanic.error": {
"level": "INFO",
"handlers": ["error_console"],