From bb0f1026046607728ea286bf61b6f2d9ab832e4e Mon Sep 17 00:00:00 2001 From: Bryan Date: Wed, 11 Dec 2013 18:26:43 -0500 Subject: [PATCH] Django will now output useful info to gunicorn, closing #196 --- karmaworld/settings/common.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/karmaworld/settings/common.py b/karmaworld/settings/common.py index f476433..d12e5e1 100644 --- a/karmaworld/settings/common.py +++ b/karmaworld/settings/common.py @@ -227,16 +227,24 @@ LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { + 'console': { + 'level': 'INFO', + 'class': 'logging.StreamHandler' + }, 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { + 'django': { + 'handlers': ['console'], + 'level': 'INFO' + }, 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', - 'propagate': True, + 'propagate': True }, } } -- 2.25.1