Skip to content

Commit

Permalink
Disable most logging by default
Browse files Browse the repository at this point in the history
  • Loading branch information
janspeller committed May 4, 2022
1 parent fb703fb commit d0f0792
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions boswatch/router/routerManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class RouterManager:

def __init__(self):
"""!Create new router"""
self.config = None
self._routerDict = {}
self._startTime = int(time.time())

Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion config/logger_client.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class=handlers.TimedRotatingFileHandler
interval=midnight
backupCount=7
formatter=complex
level=DEBUG
level=ERROR
args=('log/client.log',)

[handler_screen]
Expand Down
2 changes: 1 addition & 1 deletion config/logger_server.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class=handlers.TimedRotatingFileHandler
interval=midnight
backupCount=7
formatter=complex
level=DEBUG
level=ERROR
args=('log/server.log',)

[handler_screen]
Expand Down
2 changes: 1 addition & 1 deletion config/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0f0792

Please sign in to comment.