Skip to content

Commit

Permalink
[Fixes] Add logging for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaboiangiu committed Apr 21, 2017
1 parent 54172d8 commit df5b79c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gemet/local_settings.py.docker
Expand Up @@ -48,6 +48,22 @@ DATABASES = {

# sql_mode is set for DATABASES to stop a MySQL Strict Mode warning(mysql.W002)

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

# Use the line below in order to run django in a subpath (http://example.com/gemet)
if 'FORCE_SCRIPT_NAME' in os.environ:
FORCE_SCRIPT_NAME = os.environ['FORCE_SCRIPT_NAME']
Expand Down

0 comments on commit df5b79c

Please sign in to comment.