mirror of
https://github.com/Crocmagnon/cookiecutter-django.git
synced 2024-11-23 15:18:03 +01:00
Update logging
This commit is contained in:
parent
d3da95b117
commit
35df8db8f5
1 changed files with 13 additions and 0 deletions
|
@ -174,9 +174,22 @@ LOGGING = {
|
||||||
"level": "INFO", # set to DEBUG for SQL log
|
"level": "INFO", # set to DEBUG for SQL log
|
||||||
"propagate": False,
|
"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 = {
|
DEBUG_TOOLBAR_CONFIG = {
|
||||||
"SHOW_TOOLBAR_CALLBACK": "{{ cookiecutter.project_slug }}.middleware.debug_toolbar_bypass_internal_ips",
|
"SHOW_TOOLBAR_CALLBACK": "{{ cookiecutter.project_slug }}.middleware.debug_toolbar_bypass_internal_ips",
|
||||||
"RESULTS_CACHE_SIZE": 100,
|
"RESULTS_CACHE_SIZE": 100,
|
||||||
|
|
Loading…
Reference in a new issue