test
This commit is contained in:
parent
fcfdcdcacb
commit
15f741f5f5
4
rules.go
4
rules.go
@ -42,7 +42,7 @@ func resetMsgParsingRules2() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stmt, err := db.Prepare(`INSERT INTO msg_rules (prio, msg_type_id, descn, rule)
|
stmt, err := db.Prepare(`INSERT INTO msg_rules (prio, msg_type_id, descn, rule)
|
||||||
VALUES (?, ?, ?, ?);`)
|
VALUES (?, ?, ?, ?);`)
|
||||||
logOnError(err, "resetMsgParsingRules2 : prepare statement")
|
logOnError(err, "resetMsgParsingRules2 : prepare statement")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -53,6 +53,8 @@ func resetMsgParsingRules2() error {
|
|||||||
logOnError(err, "resetMsgParsingRules2 : insert statement "+r.Description)
|
logOnError(err, "resetMsgParsingRules2 : insert statement "+r.Description)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
} else {
|
||||||
|
log.Printf("Inserting : %d : %s => %s (%d)\n", r.Priority, r.Description, r.MsgType, r.MsgTypeID64)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user