Add extra debug call for allRelaysActive
This commit is contained in:
parent
16d268ca90
commit
cc0e3b872b
|
@ -19,6 +19,7 @@ def allRelaysActive(net):
|
||||||
Check if all enabled relays are active and authenticated.
|
Check if all enabled relays are active and authenticated.
|
||||||
"""
|
"""
|
||||||
activeRelays = getActiveRelays(net)
|
activeRelays = getActiveRelays(net)
|
||||||
|
debug(f"allRelaysActive() active relays for {net}: {activeRelays}")
|
||||||
relayNum = len(activeRelays) + 1
|
relayNum = len(activeRelays) + 1
|
||||||
existNum = 0
|
existNum = 0
|
||||||
for i in activeRelays:
|
for i in activeRelays:
|
||||||
|
@ -26,6 +27,7 @@ def allRelaysActive(net):
|
||||||
if name in main.IRCPool.keys():
|
if name in main.IRCPool.keys():
|
||||||
if main.IRCPool[name].authenticated:
|
if main.IRCPool[name].authenticated:
|
||||||
existNum += 1
|
existNum += 1
|
||||||
|
debug(f"allRelaysActive() finished, {existNum}/{relayNum} relays active for {net}")
|
||||||
if existNum == relayNum:
|
if existNum == relayNum:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue