From dbdf320b5b88ee9eca056c7a72951d4e02f734c1 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Tue, 21 May 2024 16:58:27 +0200 Subject: [PATCH] Change output for printing new routes --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 21cb704..c37d4c2 100644 --- a/main.py +++ b/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