root: fix some logs not being json

This commit is contained in:
Jens Langhammer
2020-09-06 15:52:48 +02:00
parent 80e8a3d63c
commit 6ebefc9f17
2 changed files with 31 additions and 3 deletions

View File

@ -35,4 +35,16 @@ logconfig_dict = {
},
"console": {"class": "logging.StreamHandler", "formatter": "json_formatter"},
},
"loggers": {
"uvicorn": {
"handlers": ["console"],
"level": "WARNING",
"propagate": False,
},
"gunicorn": {
"handlers": ["console"],
"level": "INFO",
"propagate": False,
},
},
}