Skip to content

Commit a24b3bf

Browse files
committed
update log messages for trigger evaluation
1 parent e2e7fe1 commit a24b3bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/controller/controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ func (c *notificationController) processResourceWithAPI(api api.API, resource me
204204
for trigger, destinations := range destinations {
205205
res, err := api.RunTrigger(trigger, un.Object)
206206
if err != nil {
207-
logEntry.Errorf("Failed to execute condition of trigger %s: %v using the configuration in namespace %s", trigger, err, apiNamespace)
208-
eventSequence.addWarning(fmt.Errorf("failed to execute condition of trigger %s: %w using the configuration in namespace %s", trigger, err, apiNamespace))
207+
logEntry.Errorf("Failed to evaluate condition of trigger %s: %v using the configuration in namespace %s", trigger, err, apiNamespace)
208+
eventSequence.addWarning(fmt.Errorf("failed to evaluate condition of trigger %s: %w using the configuration in namespace %s", trigger, err, apiNamespace))
209209
}
210-
logEntry.Infof("Trigger %s result: %v", trigger, res)
210+
logEntry.Infof("Evaluated trigger %s condition, results: %v", trigger, res)
211211

212212
for _, cr := range res {
213213
c.metricsRegistry.IncTriggerEvaluationsCounter(trigger, cr.Triggered)

0 commit comments

Comments
 (0)