Extra debugging for getting active relays

This commit is contained in:
Mark Veidemanis 2022-08-13 23:17:26 +01:00
parent d4bcbf99e5
commit f1229a76e1
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ def getEnabledRelays(net):
:return: list of enabled relay numbers :return: list of enabled relay numbers
""" """
enabledRelays = [x for x in main.network[net].relays.keys() if main.network[net].relays[x]["enabled"]] enabledRelays = [x for x in main.network[net].relays.keys() if main.network[net].relays[x]["enabled"]]
debug(f"getEnabledRelays() {net}: {enabledRelays}")
return enabledRelays return enabledRelays
@ -33,6 +34,7 @@ def getActiveRelays(net):
if name in main.IRCPool.keys(): if name in main.IRCPool.keys():
if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected: if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected:
activeRelays.append(i) activeRelays.append(i)
debug(f"getActiveRelays() {net}: {activeRelays}")
return activeRelays return activeRelays