Commit a43612f9 authored by Nicholas J Anderson's avatar Nicholas J Anderson
Browse files

Log INFO to stdout

This allows us to run `journalctl -u go` in production
parent 30cb69ee
Pipeline #592 passed with stage
in 13 minutes and 26 seconds
# Create a new file 'settings.py' and copy these contents into that file # Create a new file 'settings.py' and copy these contents into that file
import secret import secret
import os import os
import sys
AUTH_MODE = "CAS" AUTH_MODE = "CAS"
...@@ -117,6 +118,11 @@ LOGGING = { ...@@ -117,6 +118,11 @@ LOGGING = {
'level': 'ERROR', 'level': 'ERROR',
'filters': ['require_debug_false'], 'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler' 'class': 'django.utils.log.AdminEmailHandler'
},
'console': {
'level': 'INFO',
'class': 'logging.StreamHandler',
'stream': sys.stdout
} }
}, },
'loggers': { 'loggers': {
...@@ -125,6 +131,11 @@ LOGGING = { ...@@ -125,6 +131,11 @@ LOGGING = {
'level': 'ERROR', 'level': 'ERROR',
'propagate': True, 'propagate': True,
}, },
'django': {
'handlers': ['console'],
'level': 'INFO',
'propogate': True
},
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment