debug revamping

This commit is contained in:
shoopea 2019-07-31 15:31:17 +08:00
parent aca10f53a8
commit c71bd20e5a

View File

@ -159,6 +159,7 @@ func MQKeepAliveWorker() {
x := MQKeepAlive{}
err = json.Unmarshal(d.Body, &x)
logOnError(err, "MQKeepAliveWorker : Can't unmarshal.\n"+string(d.Body))
log.Printf("MQKeepAliveWorker : Received message :\n%s", string(d.Body))
if err == nil {
log.Printf("MQKeepAliveWorker : Received message from %s (%d).\n", x.Nickname, x.TGUserID64)
if x.Date.Add(10 * time.Second).Before(time.Now()) {