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