From 4fb0fb33c09923ffe0a4d840f2250f316a570761 Mon Sep 17 00:00:00 2001 From: Dejan Zele Pejchev Date: Wed, 18 Dec 2024 17:26:31 +0100 Subject: [PATCH] update log message from debug to error if processResourceWithAPI fails to run a trigger (#345) Signed-off-by: Dejan Zele Pejchev --- pkg/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 1e1ae7ab..f5f6db31 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -204,7 +204,7 @@ func (c *notificationController) processResourceWithAPI(api api.API, resource v1 for trigger, destinations := range destinations { res, err := api.RunTrigger(trigger, un.Object) if err != nil { - logEntry.Debugf("Failed to execute condition of trigger %s: %v using the configuration in namespace %s", trigger, err, apiNamespace) + 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: %v using the configuration in namespace %s", trigger, err, apiNamespace)) } logEntry.Infof("Trigger %s result: %v", trigger, res)