This commit is contained in:
shoopea 2019-12-29 20:43:12 +08:00
parent d76bcd7b15
commit 123fff4747

View File

@ -21,11 +21,13 @@ func resetMsgParsingRules2() error {
for _, r := range rules {
// b, err := json.Marshal(r)
// log.Printf("Rule : %s\n", string(b))
id, err := codeObjSubTypeId(r.MsgType)
r.MsgTypeID64, err = codeObjSubTypeId(r.MsgType)
logOnError(err, "resetMsgParsingRules2 : codeObjSubTypeId("+r.MsgType+")")
if err != nil {
return err
} else {
log.Printf("codeObjSubTypeId("+r.MsgType+") : %d / %d\n", id, r.MsgTypeID64)
}
r.re, err = regexp.Compile(r.Rule)