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:
rcourtman
2026-03-05 09:34:25 +00:00
parent 1491e0ee6e
commit 10872c8ca8
-1
View File
@@ -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