From 30e621c539890994d7016b7f1a371ddfa8e4aac8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 31 Jul 2019 15:23:38 +0800 Subject: [PATCH] debug client revamping --- workers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workers.go b/workers.go index b1efc0c..d3dcc45 100644 --- a/workers.go +++ b/workers.go @@ -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() }