From 5ae0eb6beabef194c9ccc9a509e6b285eea640ca Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 11 May 2019 19:31:23 +0800 Subject: [PATCH] test --- workers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/workers.go b/workers.go index 992e1d5..ae8ca35 100644 --- a/workers.go +++ b/workers.go @@ -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)