From 4a7df6197db26c9752564d4efa60d6c7f51475e9 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期日, 26 五月 2024 19:23:38 +0800 Subject: [PATCH] del DSL fmt source --- db/elastic.go | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/db/elastic.go b/db/elastic.go index f784a45..5e638c9 100644 --- a/db/elastic.go +++ b/db/elastic.go @@ -4,7 +4,6 @@ "basic.com/pubsub/esutil.git" "basic.com/valib/logger.git" "encoding/json" - "fmt" "ruleModelEngine/config" "ruleModelEngine/util" "strconv" @@ -259,8 +258,8 @@ logger.Info("鏈湁棰勮 id: ", id) return true, nil } - fmt.Println("棰勮 id: ", id) - fmt.Println("棰勮 AlarmRule: ", alarmRules) + logger.Info("棰勮 id: ", id) + logger.Info("棰勮 AlarmRule: ", alarmRules) esURL := "http://" + config.Elastic.Host + ":" + config.Elastic.Port + "/" + config.Elastic.Index + "/_update_by_query" newAlarmRulesJson, err := json.Marshal(alarmRules) if err != nil { -- Gitblit v1.8.0