debug client revamping

This commit is contained in:
shoopea 2019-07-31 15:23:38 +08:00
parent 1102fd47a5
commit 30e621c539

View File

@ -590,14 +590,14 @@ func MQTidyKeepAliveWorker() {
cmd = TGCommand{
Type: commandSendMsg,
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
clt.Active = false
} 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 {
log.Printf("MQTidyKeepAliveWorker : Client %s is inactive.\n", clt.MQ.User)
log.Printf("MQTidyKeepAliveWorker : Client %s is inactive.\n", clt.Login)
}
clt.Mux.Unlock()
}