Commit b72f8b14 authored by Sigmund Augdal's avatar Sigmund Augdal

Fix formatting for log file handlers

parent 9df685c3
......@@ -38,6 +38,7 @@ class Generator(object):
if logfile:
handler = logging.handlers.RotatingFileHandler(logfile,
maxBytes=10*1024**3, backupCount=5)
handler.setFormatter(logging.getLogger("").handlers[0].formatter)
logging.getLogger("").addHandler(handler)
self.range = [150, 200]
self.prefix = "158.38.213."
......
......@@ -26,6 +26,7 @@ class Generator(object):
if logfile:
handler = logging.handlers.RotatingFileHandler(logfile, maxBytes=10*1024**3,
backupCount=5)
handler.setFormatter(logging.getLogger("").handlers[0].formatter)
logging.getLogger("").addHandler(handler)
# maps security group id from etcd to the name of a ipset containing its members
self.group_members_groups = {}
......
......@@ -105,6 +105,7 @@ def main(args):
if args.daemonize:
handler = logging.handlers.RotatingFileHandler(args.logfile, maxBytes=10*1024**3,
backupCount=5)
handler.setFormatter(logging.getLogger("").handlers[0].formatter)
logging.getLogger("").addHandler(handler)
cache = NeighborCache(args.cert, args.key, args.cacert, args.interface, args.routers)
......
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