Changes for new version of LVAlert overseer.

parent 3489bf96
......@@ -13,7 +13,7 @@ import logging
# if use of the LVAlert overseer is really intended.
if settings.USE_LVALERT_OVERSEER:
from hashlib import sha1
from ligo.overseer.client import send_to_overseer
from ligo.overseer.overseer_client import send_to_overseer
from multiprocessing import Process, Manager
log = logging.getLogger('gracedb.alert')
......
......@@ -38,9 +38,9 @@ ALERT_TEST_EMAIL_TO = [
"Branson Stephens <branson@gravity.phys.uwm.edu>",
]
ALERT_XMPP_SERVERS = ["lvalert-test.cgca.uwm.edu",]
LVALERT_SEND_EXECUTABLE = '/usr/bin/lvalert_send'
LVALERT_SEND_EXECUTABLE = '/home/branson/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.
......
......@@ -3,23 +3,15 @@ import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
# Sandbox libs here, if required.
#
# Add the source code directory
sys.path.insert(1,'/home/branson/gracedbdev')
sys.path.insert(1,'/home/branson/djangoenv/lib/python2.7/site-packages')
# Scott's Shib app uses loggers.
import logging
logging.basicConfig()
# Activate the virtual environment
VIRTUALENV_ACTIVATOR = "/home/branson/djangoenv/bin/activate_this.py"
execfile(VIRTUALENV_ACTIVATOR, dict(__file__=VIRTUALENV_ACTIVATOR))
os.environ['MPLCONFIGDIR']='/home/branson/logs/'
#logging.basicConfig(level=logging.DEBUG,
# format='%(asctime)s %(levelname)s %(message)s',
# filename='/tmp/myapp.log',
# filemode='w')
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
......@@ -3,23 +3,15 @@ import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
# Sandbox libs here, if required.
#
sys.path.append('/home/lars/wsgi-sandbox/lib/python2.6')
sys.path.append('/home/lars/wsgi-sandbox/lib/python2.6/site-packages')
# Add the source code directory
sys.path.append('/home/gracedb/graceproj')
# Scott's Shib app uses loggers.
import logging
logging.basicConfig()
# Activate the virtual environment
VIRTUALENV_ACTIVATOR = "/home/lars/wsgi-sandbox/bin/activate_this.py"
execfile(VIRTUALENV_ACTIVATOR, dict(__file__=VIRTUALENV_ACTIVATOR))
os.environ['MPLCONFIGDIR']='/tmp/'
#logging.basicConfig(level=logging.DEBUG,
# format='%(asctime)s %(levelname)s %(message)s',
# filename='/tmp/myapp.log',
# filemode='w')
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
......@@ -6,11 +6,15 @@ os.environ['MPLCONFIGDIR']='/tmp/'
# Sandbox libs here, if required.
#
sys.path.append('/home/jkanner/djangoenv/lib/python2.7/site-packages')
sys.path.append('/home/jkanner/djangoenv/lib/python2.7')
#sys.path.append('/home/jkanner/djangoenv/lib/python2.7/site-packages')
#sys.path.append('/home/jkanner/djangoenv/lib/python2.7')
sys.path.append('/home/roywilliams/gracedbdev')
sys.path.append('/home/roywilliams')
# Activate the virtual environment
VIRTUALENV_ACTIVATOR = "/home/branson/djangoenv/bin/activate_this.py"
execfile(VIRTUALENV_ACTIVATOR, dict(__file__=VIRTUALENV_ACTIVATOR))
# Scott's Shib app uses loggers.
import logging
logging.basicConfig()
......
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