Make LOGGING setting configurable via environment variable
This commit is contained in:
parent
0944dd7992
commit
04ca92b5fe
@ -109,21 +109,23 @@ class Base(Configuration):
|
||||
STATIC_URL = "/static/"
|
||||
STATICFILES_DIRS = [BASE_DIR / "static"]
|
||||
|
||||
LOGGING = {
|
||||
"version": 1,
|
||||
"disable_existing_loggers": False,
|
||||
"handlers": {
|
||||
"my_console": {
|
||||
"class": "logging.StreamHandler",
|
||||
LOGGING = values.DictValue(
|
||||
{
|
||||
"version": 1,
|
||||
"disable_existing_loggers": False,
|
||||
"handlers": {
|
||||
"my_console": {
|
||||
"class": "logging.StreamHandler",
|
||||
},
|
||||
},
|
||||
},
|
||||
"loggers": {
|
||||
"": {
|
||||
"handlers": ["my_console"],
|
||||
"level": "WARNING",
|
||||
"loggers": {
|
||||
"": {
|
||||
"handlers": ["my_console"],
|
||||
"level": "WARNING",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
MEDIA_ROOT = "media"
|
||||
MEDIA_URL = "media/"
|
||||
|
Loading…
Reference in New Issue
Block a user