From 10872c8ca808df8e248a5913941a5bd062eedb00 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Thu, 5 Mar 2026 09:34:25 +0000 Subject: [PATCH] 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. --- internal/api/router.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/api/router.go b/internal/api/router.go index e9b602302..0aea7589d 100644 --- a/internal/api/router.go +++ b/internal/api/router.go @@ -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