mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
fix(patrol): remove noisy per-alert log when patrol is disabled (#1258)
The alert callback logged at Info level for every alert regardless of whether patrol was enabled. TriggerPatrolForAlert already has an enabled/running guard and its own debug logging.
This commit is contained in:
@@ -3577,7 +3577,6 @@ func (r *Router) WireAlertTriggeredAI() {
|
||||
// 4. Connect Trigger -> Watchdog
|
||||
// When an alert fires, we immediately trigger the Patrol Agent to investigate
|
||||
r.monitor.SetAlertTriggeredAICallback(func(alert *alerts.Alert) {
|
||||
log.Info().Str("alert_id", alert.ID).Msg("Alert fired leading to Patrol Trigger")
|
||||
patrol.TriggerPatrolForAlert(alert)
|
||||
|
||||
// We also trigger the specific analyzer if enabled, as it tracks specific stats
|
||||
|
||||
Reference in New Issue
Block a user