Update logging

This commit is contained in:
Gabriel Augendre 2022-12-16 21:28:05 +01:00
parent d3da95b117
commit 35df8db8f5

View file

@ -174,9 +174,22 @@ 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": "{{ cookiecutter.project_slug }}.middleware.debug_toolbar_bypass_internal_ips",
"RESULTS_CACHE_SIZE": 100,