modify log level
This commit is contained in:
parent
ea2249c30c
commit
a5f7d5e9cf
|
@ -84,7 +84,7 @@ func (r RuleEval) Start() {
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
r.Work()
|
r.Work()
|
||||||
logger.Infof("rule executed,rule_id=%d", r.RuleID())
|
logger.Debugf("rule executed,rule_id=%d", r.RuleID())
|
||||||
interval := r.rule.PromEvalInterval
|
interval := r.rule.PromEvalInterval
|
||||||
if interval <= 0 {
|
if interval <= 0 {
|
||||||
interval = 10
|
interval = 10
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue