Generate status generation logs from custom plugin run only on condition change.

This commit is contained in:
Archit Bansal
2020-07-24 09:39:39 -07:00
parent 061e977d1c
commit f80f3e0dfa
2 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -107,7 +107,9 @@ func (p *Plugin) runRules() {
p.resultChan <- result
glog.Infof("Add check result %+v for rule %+v", result, rule)
// Let the result be logged at a higher verbosity level. If there is a change in status it is logged later.
glog.V(3).Infof("Add check result %+v for rule %+v", result, rule)
glog.Infof("Ran rule %+v", rule)
}(rule)
}