modify log level

This commit is contained in:
Ulric Qin 2022-06-10 15:15:13 +08:00
parent ea2249c30c
commit a5f7d5e9cf
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func (r RuleEval) Start() {
return return
default: default:
r.Work() r.Work()
logger.Infof("rule executedrule_id=%d", r.RuleID()) logger.Debugf("rule executedrule_id=%d", r.RuleID())
interval := r.rule.PromEvalInterval interval := r.rule.PromEvalInterval
if interval <= 0 { if interval <= 0 {
interval = 10 interval = 10

View File

@ -37,6 +37,7 @@ func metricViewAdd(c *gin.Context) {
func metricViewDel(c *gin.Context) { func metricViewDel(c *gin.Context) {
var f idsForm var f idsForm
ginx.BindJSON(c, &f) ginx.BindJSON(c, &f)
f.Verify()
me := c.MustGet("user").(*models.User) me := c.MustGet("user").(*models.User)
if me.IsAdmin() { if me.IsAdmin() {