This commit is contained in:
shoopea 2019-05-11 19:31:23 +08:00
parent 3301e6c1f7
commit 5ae0eb6bea

View File

@ -124,7 +124,11 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
}
cwm.Report[r.ReplaceAllString(m.Text, "${Loot2}")] = rep
b, err := json.Marshal(cwm)
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : objSubTypeMessageMiniWar\n%s\n", string(b))
if len(string(b)) < 50 {
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] :\n%s\n", m.Text)
} else {
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : objSubTypeMessageMiniWar\n%s\n", string(b))
}
/*
if err == nil {
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : War time : %s (%d)\n", r.ReplaceAllString(m.Text, "${Time}"), objId)