Commit 8de51e49 authored by Sigmund Augdal's avatar Sigmund Augdal

Log when process starts

parent df05acb2
......@@ -39,6 +39,7 @@ def main():
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.debug("Process starting")
etcd_client = etcd.Client(host="nova-gw1.bs.unsi.no", cert=(conf.get('etcd', 'cert'),
conf.get('etcd', 'key')),
ca_cert=conf.get('etcd', 'cacert'), protocol='https')
......
......@@ -38,6 +38,9 @@ class Generator(object):
maxBytes=10*1024**3, backupCount=5)
handler.setFormatter(logging.getLogger("").handlers[0].formatter)
logging.getLogger("").addHandler(handler)
logging.debug("Process starting")
dhcp_range = json.load(open(INPUT_RANGE_FILE))
self.range = [parse_ip(x) for x in dhcp_range]
......
......@@ -29,6 +29,9 @@ class Generator(object):
backupCount=5)
handler.setFormatter(logging.getLogger("").handlers[0].formatter)
logging.getLogger("").addHandler(handler)
logging.debug("Process starting")
# maps security group id from etcd to the name of a ipset containing its members
self.group_members_groups = {}
# maps security group id from etcd to a ipset containing all rules with this group as source
......
......@@ -121,6 +121,8 @@ def main(args):
handler.setFormatter(logging.getLogger("").handlers[0].formatter)
logging.getLogger("").addHandler(handler)
logging.debug("Process starting")
cache = NeighborCache(args.cert, args.key, args.cacert, args.interface, args.routers)
cache.run()
......
......@@ -42,6 +42,9 @@ def main(logfile, interface):
maxBytes=10*1024**3, backupCount=5)
handler.setFormatter(logging.getLogger("").handlers[0].formatter)
logging.getLogger("").addHandler(handler)
logging.debug("Process starting")
state = check_state(interface)
set_state(state)
logging.info("bfd-check starting, initial state: %s", state)
......
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