This commit is contained in:
shoopea 2019-05-16 10:54:52 +08:00
parent d1bfa399d3
commit 57f91afe32

View File

@ -181,6 +181,7 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
log.Printf("TGCmdWorker[" + strconv.Itoa(id) + "] : Starting.")
for c := range cmds {
b, err := json.Marshal(c)
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : Marshal(c)")
log.Printf("TGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(b))
}
log.Printf("TGCmdWorker[" + strconv.Itoa(id) + "] : Closing.")