Change output for printing new routes
This commit is contained in:
parent
7c66c1dcf6
commit
dbdf320b5b
4
main.py
4
main.py
@ -136,7 +136,9 @@ def cycle(active_paths, clock, conf, fc):
|
||||
new_path = new_paths[route_name]
|
||||
alert(f'Route change: Switched from path {old_path} to path {new_path} for route {route_name}')
|
||||
clock = -1 # force check next round
|
||||
info(f'Routes ok:')
|
||||
info(f'New routes:')
|
||||
else:
|
||||
info(f'Routes ok:')
|
||||
for route in conf['routes']:
|
||||
print(f' - {route["name"]} -> {new_paths[route["name"]]}')
|
||||
return new_paths, clock
|
||||
|
Loading…
Reference in New Issue
Block a user