diff --git a/boswatch/router/routerManager.py b/boswatch/router/routerManager.py index bd4b4349..b4e6e556 100644 --- a/boswatch/router/routerManager.py +++ b/boswatch/router/routerManager.py @@ -31,6 +31,7 @@ class RouterManager: def __init__(self): """!Create new router""" + self.config = None self._routerDict = {} self._startTime = int(time.time()) @@ -40,6 +41,7 @@ def buildRouters(self, config): @param config: instance of ConfigYaml class @return True or False""" + self.config = config self._routerDict = {} # all routers and instances of modules/plugins would be destroyed routerDict_tmp = {} logging.debug("build routers") diff --git a/config/logger_client.ini b/config/logger_client.ini index fc97d55d..bdaacbe6 100644 --- a/config/logger_client.ini +++ b/config/logger_client.ini @@ -33,7 +33,7 @@ class=handlers.TimedRotatingFileHandler interval=midnight backupCount=7 formatter=complex -level=DEBUG +level=ERROR args=('log/client.log',) [handler_screen] diff --git a/config/logger_server.ini b/config/logger_server.ini index faf2f458..b0c591ec 100644 --- a/config/logger_server.ini +++ b/config/logger_server.ini @@ -33,7 +33,7 @@ class=handlers.TimedRotatingFileHandler interval=midnight backupCount=7 formatter=complex -level=DEBUG +level=ERROR args=('log/server.log',) [handler_screen] diff --git a/config/server.yaml b/config/server.yaml index 9ba87150..3cb07b18 100644 --- a/config/server.yaml +++ b/config/server.yaml @@ -11,7 +11,7 @@ server: port: 8080 name: BW3 Server # name of the BW3 Server instance useBroadcast: no # serve server ip on broadcast request - log: true # enable log file + log: false # enable log file alarmRouter: - Router 1