Skip to content

Commit

Permalink
Refactor settings.py for improved readability and consistency in envi…
Browse files Browse the repository at this point in the history
…ronment variable assignments
  • Loading branch information
DonnieBLT committed Jan 1, 2025
1 parent 6a50824 commit ed04cb4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions blt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
},
},
}

Expand Down

0 comments on commit ed04cb4

Please sign in to comment.