read LOG_TO_CONSOLE with decouple

This commit is contained in:
jerryfletcher21
2025-05-16 18:17:12 +02:00
parent e71b307a38
commit e81c1fb3d4

View File

@ -59,7 +59,7 @@ CORS_ALLOW_ALL_ORIGINS = True
SESSION_COOKIE_HTTPONLY = False
# Logging settings
if os.environ.get("LOG_TO_CONSOLE"):
if config("LOG_TO_CONSOLE", cast=bool, default=False):
LOGGING = {
"version": 1,
"disable_existing_loggers": False,