From ed04cb444c2409c4b527fda35efae0ec08dfb1e2 Mon Sep 17 00:00:00 2001 From: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> Date: Wed, 1 Jan 2025 15:32:11 -0500 Subject: [PATCH] Refactor settings.py for improved readability and consistency in environment variable assignments --- blt/settings.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/blt/settings.py b/blt/settings.py index 9a161442b..1a88b525e 100644 --- a/blt/settings.py +++ b/blt/settings.py @@ -226,9 +226,9 @@ if not TESTING: SECURE_SSL_REDIRECT = True - import logging + # import logging - logging.basicConfig(level=logging.DEBUG) + # logging.basicConfig(level=logging.DEBUG) GS_BUCKET_NAME = "bhfiles" @@ -360,6 +360,11 @@ "level": "CRITICAL", # Minimal logging level "propagate": False, # Prevent propagation to parent loggers }, + "django.request": { + "handlers": [], # Disable request logging + "level": "CRITICAL", # Only log critical errors + "propagate": False, # Prevent propagation to parent loggers + }, }, }