test
This commit is contained in:
parent
d76bcd7b15
commit
123fff4747
4
rules.go
4
rules.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user