From d09c35a881d4e52201aecabb8954f82abbeedbc5 Mon Sep 17 00:00:00 2001 From: Timothy Hobbs Date: Tue, 14 Nov 2023 19:44:43 +0100 Subject: [PATCH] Show stack traces in stdout on standalone helpdesk --- standalone/config/settings.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/standalone/config/settings.py b/standalone/config/settings.py index 2a6340f5..237be0c5 100644 --- a/standalone/config/settings.py +++ b/standalone/config/settings.py @@ -229,3 +229,20 @@ MEDIA_ROOT = '/data/media' # for Django 3.2+, set default for autofields: DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' + +LOGGING = { + 'version': 1, + 'disable_existing_loggers': False, + 'handlers': { + 'console': { + 'class': 'logging.StreamHandler', + }, + }, + 'loggers': { + 'django': { + 'handlers': ['console'], + 'level': 'ERROR', # Change to 'DEBUG' if you want to print all debug messages as well + 'propagate': True, + }, + }, +}