Make LOGGING setting configurable via environment variable
All checks were successful
Ruff / ruff (push) Successful in 29s
Test / test (push) Successful in 5m10s

This commit is contained in:
Adam Goldsmith 2024-05-04 20:34:36 -04:00
parent 0944dd7992
commit 04ca92b5fe

View File

@ -109,21 +109,23 @@ class Base(Configuration):
STATIC_URL = "/static/" STATIC_URL = "/static/"
STATICFILES_DIRS = [BASE_DIR / "static"] STATICFILES_DIRS = [BASE_DIR / "static"]
LOGGING = { LOGGING = values.DictValue(
"version": 1, {
"disable_existing_loggers": False, "version": 1,
"handlers": { "disable_existing_loggers": False,
"my_console": { "handlers": {
"class": "logging.StreamHandler", "my_console": {
"class": "logging.StreamHandler",
},
}, },
}, "loggers": {
"loggers": { "": {
"": { "handlers": ["my_console"],
"handlers": ["my_console"], "level": "WARNING",
"level": "WARNING", },
}, },
}, }
} )
MEDIA_ROOT = "media" MEDIA_ROOT = "media"
MEDIA_URL = "media/" MEDIA_URL = "media/"