Skip to content
Snippets Groups Projects
Commit 21e9a71d authored by Brian Moe's avatar Brian Moe
Browse files

Use of overseer and logging changes in production settings.

parent d81ddd8a
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ ALERT_XMPP_SERVERS = ["lvalert.cgca.uwm.edu"]
#LVALERT_SEND_EXECUTABLE = '/usr/bin/lvalert_send'
LVALERT_SEND_EXECUTABLE = '/home/gracedb/djangoenv/bin/lvalert_send'
USE_LVALERT_OVERSEER = False
USE_LVALERT_OVERSEER = True
# For each lvalert server, a separate instance of the lvalert_overseer
# must be running and listening on a distinct port.
......@@ -359,6 +359,13 @@ LOGGING = {
'level':'DEBUG',
'class':'django.utils.log.NullHandler',
},
'info_file': {
'class': 'logging.handlers.TimedRotatingFileHandler',
'formatter': 'simple',
'filename': '%s/gracedb_info.log' % LOG_ROOT,
'when': 'midnight',
'backupCount' : 10,
},
'performance_file': {
'class': 'logging.FileHandler',
'formatter': 'simple',
......@@ -371,6 +378,11 @@ LOGGING = {
'propagate': True,
'level': 'INFO',
},
'gracedb': {
'handlers': ['info_file'],
'propagate': True,
'level' : 'INFO',
},
'middleware': {
'handlers': ['performance_file'],
'propagate': True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment