Print message if relay is unauthenticated/disconnected

This commit is contained in:
Mark Veidemanis 2022-08-13 14:06:34 +01:00
parent 6c11bbe912
commit 5db0373731
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,14 @@ def allRelaysActive(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:
existNum += 1 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}") debug(f"allRelaysActive() finished, {existNum}/{relayNum} relays active for {net}")
if existNum == relayNum: if existNum == relayNum:
return True return True