This commit is contained in:
shoopea 2019-05-06 15:34:55 +08:00
parent 1549a672a1
commit 72d58c83b5

View File

@ -82,6 +82,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
r := regexp.MustCompile(`^(?P<Castle>.)(?s:.*)$`)
if r.FindStringSubmatch(m.Text) != nil {
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : War report identified (%d)\n", objId)
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Castle : %s (%d)\n", r.ReplaceAllString(m.Text, "${Castle}"), objId)
} else {
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Unknown message type (%d)\n", objId)
}