That is a sensible default for production deployment. As far as now, nothing was logged to console in production environment (not even in case of HTTP 500 error, which makes production errors undebuggable).
@@ -186,7 +186,10 @@ LOGGING = {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
- }
+ },
+ 'console': {
+ 'class': 'logging.StreamHandler',
},
'loggers': {
'django.request': {
@@ -194,6 +197,10 @@ LOGGING = {
'propagate': True,
+ 'django': {
+ 'handlers': ['console'],
+ 'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
}