Skip to content

Commit

Permalink
update log message from debug to error if processResourceWithAPI fail…
Browse files Browse the repository at this point in the history
…s to run a trigger
  • Loading branch information
dejanzele committed Oct 29, 2024
1 parent 2fef5c9 commit 54efd8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54efd8c

Please sign in to comment.