add some log messages

This commit is contained in:
Bastian Schroll 2019-10-21 20:56:51 +02:00
parent 96aeb3b705
commit 495176457e
No known key found for this signature in database
GPG key ID: 0AE96912A20E9F5F
2 changed files with 5 additions and 2 deletions

View file

@ -109,6 +109,8 @@ class RouterManager:
for routerName in routerRunList:
if routerName in self._routerDict:
self._routerDict[routerName].runRouter(bwPacket)
else:
logging.warning("unknown router: %s", routerName)
def _showRouterRoute(self):
"""!Show the routes of all routers"""

View file

@ -63,7 +63,7 @@ args = parser.parse_args()
bwConfig = ConfigYAML()
if not bwConfig.loadConfigFile(paths.CONFIG_PATH + args.config):
logging.error("cannot load config file")
logging.fatal("cannot load config file")
exit(1)
# ############################# begin server system
@ -71,7 +71,8 @@ try:
bwRoutMan = RouterManager()
if not bwRoutMan.buildRouter(bwConfig):
exit()
logging.fatal("Error while building routers")
exit(1)
bcServer = BroadcastServer()
if bwConfig.get("server", "useBroadcast", default=False):