mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-05 06:13:55 +01:00
Improve logging
This commit is contained in:
parent
1e91722794
commit
f261ceadab
1 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue