From d615da3a0fe87086640def3c18ad41949bf7a048 Mon Sep 17 00:00:00 2001 From: radex Date: Fri, 18 Aug 2023 15:13:35 +0200 Subject: [PATCH] add error logging in production --- spejstore/settings.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spejstore/settings.py b/spejstore/settings.py index 334eab2..6d22cab 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -93,6 +93,21 @@ TEMPLATES = [ WSGI_APPLICATION = "spejstore.wsgi.application" +# Logging + +LOGGING = { + "version": 1, + "disable_existing_loggers": False, + "handlers": { + "console": { + "class": "logging.StreamHandler", + }, + }, + "root": { + "handlers": ["console"], + "level": "INFO", + }, +} # Database # https://docs.djangoproject.com/en/1.10/ref/settings/#databases