diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index a943c080860cd04ec79018429e205d2cee4302cf..b9870328a6cfbf1570427f4f9c20ee0255f3a6c5 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -199,9 +199,7 @@ INSTALLED_APPS = [ 'email_log', ] -# A sample logging configuration. The only tangible logging -# performed by this configuration is to send an email to -# the site admins on every HTTP 500 error when DEBUG=False. +# A sample logging configuration. # See http://docs.djangoproject.com/en/dev/topics/logging for # more details on how to customize your logging configuration. LOGGING = { @@ -213,6 +211,10 @@ LOGGING = { } }, "handlers": { + 'console': { + 'level': os.environ.get('DJANGO_LOG_LEVEL', 'WARNING'), + 'class': 'logging.StreamHandler', + }, "mail_admins": { "level": "ERROR", "filters": ["require_debug_false"], @@ -220,6 +222,10 @@ LOGGING = { } }, "loggers": { + 'django': { + 'handlers': ['console'], + 'propagate': True, + }, "django.request": { "handlers": ["mail_admins"], "level": "ERROR",