From 6a5082426aad04be35b6bb59e3b4a0413d34cf8f Mon Sep 17 00:00:00 2001 From: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> Date: Wed, 1 Jan 2025 15:21:11 -0500 Subject: [PATCH] Refactor settings.py for improved readability and consistency in environment variable assignments --- blt/settings.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/blt/settings.py b/blt/settings.py index 521ae1c8c..9a161442b 100644 --- a/blt/settings.py +++ b/blt/settings.py @@ -353,18 +353,12 @@ LOGGING = { "version": 1, "disable_existing_loggers": True, - "handlers": { - "console": { - "class": "logging.StreamHandler", - }, - "mail_admins": { - "class": "django.utils.log.AdminEmailHandler", - }, - }, + "handlers": {}, # No handlers are defined "loggers": { "": { - "handlers": [], # Disable logging by setting handlers to an empty list - "level": "CRITICAL", # Only log critical errors + "handlers": [], # No handlers attached + "level": "CRITICAL", # Minimal logging level + "propagate": False, # Prevent propagation to parent loggers }, }, }