more cleanup

This commit is contained in:
2021-09-30 01:23:59 +02:00
parent f18d4e57f9
commit e11d78ae4f
2 changed files with 0 additions and 4 deletions

View File

@@ -34,8 +34,6 @@ class Action:
def __init__(self, cfg, local_addrs, debug): def __init__(self, cfg, local_addrs, debug):
self.cfg = cfg self.cfg = cfg
self.logger = logging.getLogger(cfg["name"])
self.logger.setLevel(cfg.get_loglevel(debug))
self.conditions = cfg["conditions"] if "conditions" in cfg else None self.conditions = cfg["conditions"] if "conditions" in cfg else None
if self.conditions is not None: if self.conditions is not None:

View File

@@ -26,8 +26,6 @@ class Rule:
""" """
def __init__(self, cfg, local_addrs, debug): def __init__(self, cfg, local_addrs, debug):
self.cfg = cfg self.cfg = cfg
self.logger = logging.getLogger(cfg["name"])
self.logger.setLevel(cfg.get_loglevel(debug))
self.conditions = cfg["conditions"] if "conditions" in cfg else None self.conditions = cfg["conditions"] if "conditions" in cfg else None
if self.conditions is not None: if self.conditions is not None: