From 8cd22888b7cde1971ed43c443dc5533c9222237e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 11 Aug 2022 20:12:38 +0100 Subject: [PATCH] Add extra debug call for allRelaysActive --- modules/chankeep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/chankeep.py b/modules/chankeep.py index b0bb39d..6cc501c 100644 --- a/modules/chankeep.py +++ b/modules/chankeep.py @@ -19,6 +19,7 @@ def allRelaysActive(net): Check if all enabled relays are active and authenticated. """ activeRelays = getActiveRelays(net) + debug(f"allRelaysActive() active relays for {net}: {activeRelays}") relayNum = len(activeRelays) + 1 existNum = 0 for i in activeRelays: @@ -26,6 +27,7 @@ def allRelaysActive(net): if name in main.IRCPool.keys(): if main.IRCPool[name].authenticated: existNum += 1 + debug(f"allRelaysActive() finished, {existNum}/{relayNum} relays active for {net}") if existNum == relayNum: return True return False