Improve logging

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

View file

@ -193,9 +193,21 @@ 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 = {
"SHOW_TOOLBAR_CALLBACK": "charasheet.middleware.debug_toolbar_bypass_internal_ips",
"RESULTS_CACHE_SIZE": 100,