Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
a43612f9
Commit
a43612f9
authored
Dec 06, 2016
by
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
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
go/settings/settings.py.template
View file @
a43612f9
# Create a new file 'settings.py' and copy these contents into that file
import secret
import os
import sys
AUTH_MODE = "CAS"
...
...
@@ -117,6 +118,11 @@ LOGGING = {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
},
'console': {
'level': 'INFO',
'class': 'logging.StreamHandler',
'stream': sys.stdout
}
},
'loggers': {
...
...
@@ -125,6 +131,11 @@ LOGGING = {
'level': 'ERROR',
'propagate': True,
},
'django': {
'handlers': ['console'],
'level': 'INFO',
'propogate': True
},
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment