debug client revamping
This commit is contained in:
parent
1102fd47a5
commit
30e621c539
@ -590,14 +590,14 @@ func MQTidyKeepAliveWorker() {
|
|||||||
cmd = TGCommand{
|
cmd = TGCommand{
|
||||||
Type: commandSendMsg,
|
Type: commandSendMsg,
|
||||||
ToUserID64: cfg.Bot.Admin,
|
ToUserID64: cfg.Bot.Admin,
|
||||||
Text: fmt.Sprintf("Client %s timed out (%d messages purged).", clt.MQ.User, msgs),
|
Text: fmt.Sprintf("Client %s timed out (%d messages purged).", clt.Login, msgs),
|
||||||
}
|
}
|
||||||
TGCmdQueue <- cmd
|
TGCmdQueue <- cmd
|
||||||
clt.Active = false
|
clt.Active = false
|
||||||
} else if clt.Active {
|
} else if clt.Active {
|
||||||
log.Printf("MQTidyKeepAliveWorker : Client %s is active.\n", clt.MQ.User)
|
log.Printf("MQTidyKeepAliveWorker : Client %s is active.\n", clt.Login)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("MQTidyKeepAliveWorker : Client %s is inactive.\n", clt.MQ.User)
|
log.Printf("MQTidyKeepAliveWorker : Client %s is inactive.\n", clt.Login)
|
||||||
}
|
}
|
||||||
clt.Mux.Unlock()
|
clt.Mux.Unlock()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user