From 5db0373731acfc25a4cc2bef66604c9ed7e4453e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 14:06:34 +0100 Subject: [PATCH] Print message if relay is unauthenticated/disconnected --- modules/chankeep.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/chankeep.py b/modules/chankeep.py index 1a497e0..71f655c 100644 --- a/modules/chankeep.py +++ b/modules/chankeep.py @@ -35,6 +35,14 @@ def allRelaysActive(net): if name in main.IRCPool.keys(): if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected: existNum += 1 + else: + debug(f"allRelaysActive() {name} is not authenticated or connected") + debug( + ( + f"allRelaysActive() {name} auth:{main.IRCPool[name].authenticated} " + f"connected:{main.IRCPool[name].isconnected}" + ) + ) debug(f"allRelaysActive() finished, {existNum}/{relayNum} relays active for {net}") if existNum == relayNum: return True