From 1bd81e81f9e18472bae4b484012d39ca959ac023 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 29 Dec 2019 21:02:20 +0800 Subject: [PATCH] test --- rules.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rules.go b/rules.go index 9269f3c..2fc46be 100644 --- a/rules.go +++ b/rules.go @@ -37,8 +37,7 @@ func resetMsgParsingRules2() error { if err != nil { return err } - b, _ := json.Marshal(r2) - log.Printf("Rule : %s\n", string(b)) + rules2 = append(rules2, r2) } @@ -57,15 +56,10 @@ func resetMsgParsingRules2() error { defer stmt.Close() for _, r2 := range rules2 { - b, err := json.Marshal(r2) - log.Printf("Rule2 : %s\n", string(b)) - _, err = stmt.Exec(r2.Priority, r2.MsgTypeID64, r2.Description, r2.Rule) logOnError(err, "resetMsgParsingRules2 : insert statement "+r2.Description) if err != nil { return err - } else { - log.Printf("Inserting : %d : %s => %s (%d)\n", r2.Priority, r2.Description, r2.MsgType, r2.MsgTypeID64) } }