test
This commit is contained in:
parent
123fff4747
commit
511d1364d7
8
rules.go
8
rules.go
@ -18,16 +18,16 @@ func resetMsgParsingRules2() error {
|
||||
|
||||
err = json.Unmarshal(b, &rules)
|
||||
|
||||
for _, r := range rules {
|
||||
for k, _ := range rules {
|
||||
// b, err := json.Marshal(r)
|
||||
// log.Printf("Rule : %s\n", string(b))
|
||||
id, err := codeObjSubTypeId(r.MsgType)
|
||||
|
||||
r := rules[k]
|
||||
|
||||
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