Add basic logging config

This commit is contained in:
Joel Bradshaw 2022-01-10 06:43:43 +00:00 committed by Joel Bradshaw
parent 6492ca2941
commit af3c84cd87

View file

@ -106,6 +106,27 @@ TEMPLATES = [
},
]
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'root': {
'handlers': ['console'],
'level': 'WARNING',
},
'loggers': {
'django': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
'propagate': False,
},
},
}
WSGI_APPLICATION = "bookwyrm.wsgi.application"