diff --git a/src/charasheet/settings.py b/src/charasheet/settings.py index e288d1e..4b42c4e 100644 --- a/src/charasheet/settings.py +++ b/src/charasheet/settings.py @@ -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,