Commit 4154a406 by bergquist

feat(alerting): handle all results, even due they have errors

DON'T SWALLOW THE ERR CARL
parent 158ce061
......@@ -101,11 +101,6 @@ func (e *Engine) resultDispatcher() {
for result := range e.resultQueue {
e.log.Debug("Alert Rule Result", "ruleId", result.Rule.Id, "firing", result.Firing)
if result.Error != nil {
e.log.Error("Alert Rule Result Error", "ruleId", result.Rule.Id, "error", result.Error, "retry")
} else {
e.resultHandler.Handle(result)
}
e.resultHandler.Handle(result)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment