Improve logging

This commit is contained in:
Gabriel Augendre 2022-11-10 18:27:26 +01:00
parent 1e91722794
commit f261ceadab

View file

@ -193,7 +193,19 @@ LOGGING = {
"level": "INFO", # set to DEBUG for SQL log
"propagate": False,
},
"root": {
"handlers": ["console"],
"level": "WARNING",
"propagate": False,
},
},
}
for app in CUSTOM_APPS:
LOGGING["loggers"][app] = {
"handlers": ["console"],
"level": env("LOG_LEVEL"),
"propagate": False,
}
DEBUG_TOOLBAR_CONFIG = {