fix(app/settings): Setup logging

This commit is contained in:
Tom Hubrecht 2024-11-25 22:54:26 +01:00
parent e9d3c84e1a
commit d092348674
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -27,6 +27,27 @@ ADMINS = credentials.get_json("ADMINS", [])
SITE_ID = 1 SITE_ID = 1
###
# Logging configuration
LOGGING = credentials.get_json(
"LOGGING",
{
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"console": {
"class": "logging.StreamHandler",
},
},
"root": {
"handlers": ["console"],
"level": credentials.get("LOG_LEVEL", "WARNING"),
},
},
)
### ###
# List the installed applications # List the installed applications