From f1229a76e1923ee4d0995bf828ca80cc4a24518c Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 23:17:26 +0100 Subject: [PATCH] Extra debugging for getting active relays --- modules/chankeep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/chankeep.py b/modules/chankeep.py index 0ac9bf8..5816c68 100644 --- a/modules/chankeep.py +++ b/modules/chankeep.py @@ -16,6 +16,7 @@ def getEnabledRelays(net): :return: list of enabled relay numbers """ enabledRelays = [x for x in main.network[net].relays.keys() if main.network[net].relays[x]["enabled"]] + debug(f"getEnabledRelays() {net}: {enabledRelays}") return enabledRelays @@ -33,6 +34,7 @@ def getActiveRelays(net): if name in main.IRCPool.keys(): if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected: activeRelays.append(i) + debug(f"getActiveRelays() {net}: {activeRelays}") return activeRelays