Skip to content

Commit

Permalink
fix(logging): Add debug log when skipping alert due to `send-on-resol…
Browse files Browse the repository at this point in the history
…ved: false`

relates to #688
  • Loading branch information
TwiN committed Jan 20, 2025
1 parent fa3e5dc commit 1c99386
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions watchdog/alerting.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func handleAlertsToResolve(ep *endpoint.Endpoint, result *endpoint.Result, alert
logr.Errorf("[watchdog.handleAlertsToResolve] Failed to delete persisted triggered endpoint alert for endpoint with key=%s: %s", ep.Key(), err.Error())
}
if !endpointAlert.IsSendingOnResolved() {
logr.Debugf("[watchdog.handleAlertsToResolve] Not sending request to provider of alert with type=%s for endpoint with key=%s despite being RESOLVED, because send-on-resolve is set to false", endpointAlert.Type, ep.Key())
continue
}
alertProvider := alertingConfig.GetAlertingProviderByAlertType(endpointAlert.Type)
Expand Down

0 comments on commit 1c99386

Please sign in to comment.