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 c6e5d54 commit 6a50824
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions blt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
}
Expand Down

0 comments on commit 6a50824

Please sign in to comment.