debug revamping
This commit is contained in:
parent
aca10f53a8
commit
c71bd20e5a
@ -159,6 +159,7 @@ func MQKeepAliveWorker() {
|
|||||||
x := MQKeepAlive{}
|
x := MQKeepAlive{}
|
||||||
err = json.Unmarshal(d.Body, &x)
|
err = json.Unmarshal(d.Body, &x)
|
||||||
logOnError(err, "MQKeepAliveWorker : Can't unmarshal.\n"+string(d.Body))
|
logOnError(err, "MQKeepAliveWorker : Can't unmarshal.\n"+string(d.Body))
|
||||||
|
log.Printf("MQKeepAliveWorker : Received message :\n%s", string(d.Body))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
log.Printf("MQKeepAliveWorker : Received message from %s (%d).\n", x.Nickname, x.TGUserID64)
|
log.Printf("MQKeepAliveWorker : Received message from %s (%d).\n", x.Nickname, x.TGUserID64)
|
||||||
if x.Date.Add(10 * time.Second).Before(time.Now()) {
|
if x.Date.Add(10 * time.Second).Before(time.Now()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user