mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-07 09:10:09 +01:00
add some log messages
This commit is contained in:
parent
96aeb3b705
commit
495176457e
|
|
@ -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"""
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue