fix(app/settings): Setup logging
This commit is contained in:
parent
e9d3c84e1a
commit
d092348674
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue