From a5f7d5e9cf712686bd4133c08ad424f56e6c2df7 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Fri, 10 Jun 2022 15:15:13 +0800 Subject: [PATCH] modify log level --- src/server/engine/worker.go | 2 +- src/webapi/router/router_metric_view.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/engine/worker.go b/src/server/engine/worker.go index 85054222..8a6c76f1 100644 --- a/src/server/engine/worker.go +++ b/src/server/engine/worker.go @@ -84,7 +84,7 @@ func (r RuleEval) Start() { return default: r.Work() - logger.Infof("rule executed,rule_id=%d", r.RuleID()) + logger.Debugf("rule executed,rule_id=%d", r.RuleID()) interval := r.rule.PromEvalInterval if interval <= 0 { interval = 10 diff --git a/src/webapi/router/router_metric_view.go b/src/webapi/router/router_metric_view.go index 163ee301..f0baee89 100644 --- a/src/webapi/router/router_metric_view.go +++ b/src/webapi/router/router_metric_view.go @@ -37,6 +37,7 @@ func metricViewAdd(c *gin.Context) { func metricViewDel(c *gin.Context) { var f idsForm ginx.BindJSON(c, &f) + f.Verify() me := c.MustGet("user").(*models.User) if me.IsAdmin() {