mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Fix return on nil
and cleanup debug messages
This commit is contained in:
parent
b46cbc5fbe
commit
bbca9861fb
@ -49,7 +49,7 @@ type VictoropsNotifier struct {
|
||||
|
||||
// Notify sends notification to Victorops via POST to URL endpoint
|
||||
func (this *VictoropsNotifier) Notify(evalContext *alerting.EvalContext) error {
|
||||
this.log.Info("Executing victorops notification", "ruleId", evalContext.Rule.Id, "notification", this.Name, "url", this.URL, "foo", this.AlertOnExecError)
|
||||
this.log.Info("Executing victorops notification", "ruleId", evalContext.Rule.Id, "notification")
|
||||
metrics.M_Alerting_Notification_Sent_Victorops.Inc(1)
|
||||
|
||||
fields := make([]map[string]interface{}, 0)
|
||||
@ -80,8 +80,6 @@ func (this *VictoropsNotifier) Notify(evalContext *alerting.EvalContext) error {
|
||||
|
||||
if evalContext.Rule.State == models.AlertStateExecError && !this.AlertOnExecError {
|
||||
return nil
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
|
||||
body := map[string]interface{}{
|
||||
|
Loading…
Reference in New Issue
Block a user