Skip to content

Commit

Permalink
Fix logging for testing environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dlareau committed Mar 11, 2020
1 parent d7c2a0f commit 232bc2b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions puzzlehunt_server/settings/travis_settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .base_settings import *
import os

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
Expand All @@ -18,3 +19,19 @@
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
ALLOWED_HOSTS = ['*']

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
},
}

0 comments on commit 232bc2b

Please sign in to comment.