From: Guillaume Pellerin Date: Tue, 4 Oct 2022 08:24:34 +0000 (+0200) Subject: add logging to settings X-Git-Tag: 2.8.1-pro~79^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6000db7f483a3f0b8fb81ff9d3cb581c59ec82f6;p=teleforma.git add logging to settings --- diff --git a/app/settings.py b/app/settings.py index 6dccc850..512e9ba7 100644 --- a/app/settings.py +++ b/app/settings.py @@ -344,7 +344,7 @@ LOGGING = { }, 'handlers': { 'file': { - 'level': 'DEBUG', + 'level': 'INFO', 'class': 'logging.FileHandler', 'filename': "/var/log/app/app.log", 'formatter': 'simple', diff --git a/app/wsgi.ini b/app/wsgi.ini index 3c9e5df1..cfce22ee 100644 --- a/app/wsgi.ini +++ b/app/wsgi.ini @@ -17,8 +17,8 @@ single-interpreter = true die-on-term = true ; Shutdown when receiving SIGTERM (default is respawn) need-app = true -disable-logging = true ; Disable built-in logging -#logger = file:/var/log/app/app.log +disable-logging = false ; Disable built-in logging +logger = file:/var/log/app/app.log log-4xx = true ; but log 4xx's anyway log-5xx = true ; and 5xx's