From b8f0a5a5662b82510335e8ab218f62a232150bf8 Mon Sep 17 00:00:00 2001 From: Rob Owens Date: Tue, 2 Dec 2025 21:02:35 -0600 Subject: [PATCH] update log messages for trigger evaluation Signed-off-by: Rob Owens --- pkg/controller/controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 5439cd78..0d624eed 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -204,10 +204,10 @@ func (c *notificationController) processResourceWithAPI(api api.API, resource me for trigger, destinations := range destinations { res, err := api.RunTrigger(trigger, un.Object) if err != nil { - logEntry.Errorf("Failed to execute condition of trigger %s: %v using the configuration in namespace %s", trigger, err, apiNamespace) - eventSequence.addWarning(fmt.Errorf("failed to execute condition of trigger %s: %w using the configuration in namespace %s", trigger, err, apiNamespace)) + logEntry.Errorf("Failed to evaluate condition of trigger %s: %v using the configuration in namespace %s", trigger, err, apiNamespace) + eventSequence.addWarning(fmt.Errorf("failed to evaluate condition of trigger %s: %w using the configuration in namespace %s", trigger, err, apiNamespace)) } - logEntry.Infof("Trigger %s result: %v", trigger, res) + logEntry.Infof("Evaluated trigger %s condition, results: %v", trigger, res) for _, cr := range res { c.metricsRegistry.IncTriggerEvaluationsCounter(trigger, cr.Triggered)