This commit is contained in:
shoopea 2019-06-11 11:37:45 +08:00
parent 555fba5ab5
commit fa77ae030e

View File

@ -323,7 +323,7 @@ func MQTGCmdWorker(id int, cmds <-chan TGCommand) {
if _, ok := clientsKeepAlive[c.FromUserID64]; ok {
j, err := json.Marshal(c)
logOnError(err, "MQTGCmdWorker["+strconv.Itoa(id)+"] : Marshal(c)")
log.Printf("MQTGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(j))
//log.Printf("MQTGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(j))
err = clientsQueue[c.FromUserID64].Channel.Publish(
"", // exchange
clientsQueue[c.FromUserID64].Queue.Name, // routing key