Skip to content

Commit

Permalink
add log option for server
Browse files Browse the repository at this point in the history
  • Loading branch information
janspeller committed Mar 13, 2021
1 parent d018c7e commit 403699e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boswatch/router/routerManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def runRouters(self, routerRunList, bwPacket):
else:
logging.warning("unknown router: %s", routerName)

self._saveStats() # write stats to stats file
if self.config.get('server.logging', False):
self._saveStats() # write stats to stats file

def cleanup(self):
"""!Run cleanup routines for all loaded route points"""
Expand Down
1 change: 1 addition & 0 deletions config/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +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

alarmRouter:
- Router 1
Expand Down

0 comments on commit 403699e

Please sign in to comment.