This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Trying to log info level events without debug

  • Loading branch information...
LindsayYoung committed Apr 13, 2017
1 parent 3b0452a commit 39961b3ef84b1c2abe882959f15b9bc5d2e25bc8
Showing with 21 additions and 17 deletions.
  1. +21 −0 fec/fec/settings/base.py
  2. +0 −17 fec/fec/settings/production.py
@@ -247,3 +247,24 @@
AUTHENTICATION_BACKENDS = \
['django.contrib.auth.backends.ModelBackend',
'uaa_client.authentication.UaaBackend']
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
},
}
@@ -14,23 +14,6 @@
COMPRESS_ENABLED = True
COMPRESS_OFFLINE = True
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
},
}
try:
from .local import * # noqa
except ImportError:

0 comments on commit 39961b3

Please sign in to comment.