mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
fix(monitoring): add info logging for skipped recovery notifications
This commit is contained in:
@@ -8916,10 +8916,18 @@ func (m *Monitor) handleAlertResolved(alertID string) {
|
||||
if resolvedAlert != nil {
|
||||
// Check if recovery notification should be suppressed during quiet hours
|
||||
if m.alertManager.ShouldSuppressResolvedNotification(resolvedAlert.Alert) {
|
||||
log.Info().
|
||||
Str("alertID", alertID).
|
||||
Str("type", resolvedAlert.Alert.Type).
|
||||
Msg("Resolved notification skipped - suppressed by quiet hours")
|
||||
return
|
||||
}
|
||||
go m.notificationMgr.SendResolvedAlert(resolvedAlert)
|
||||
}
|
||||
} else {
|
||||
log.Info().
|
||||
Str("alertID", alertID).
|
||||
Msg("Resolved notification skipped - notifyOnResolve is disabled")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user