From f58cd1fa309c2b1771462f957706ed79a399a2c1 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 15 May 2019 11:24:35 +0800 Subject: [PATCH] test --- mq.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mq.go b/mq.go index 1b92e32..c4fdcb2 100644 --- a/mq.go +++ b/mq.go @@ -83,7 +83,7 @@ func MQReceiveMsgWorker(id int, cmd chan<- ChatWarsCommand) { failOnError(err, "MQReceiveMsgWorker["+strconv.Itoa(id)+"] : Failed to declare a consumer") for d := range m { - // log.Printf("MQReceiveMsgWorker["+strconv.Itoa(id)+"] : Received a message: %s", string(d.Body)) + log.Printf("MQReceiveMsgWorker["+strconv.Itoa(id)+"] : Received a message: %s", string(d.Body)) err = json.Unmarshal(d.Body, &c) logOnError(err, "MQReceiveMsgWorker["+strconv.Itoa(id)+"] : Can't unmarshal.\n"+string(d.Body)) if err == nil {