Skip to content

Commit

Permalink
fix: print out errors (kyverno#11218) (kyverno#11219)
Browse files Browse the repository at this point in the history
Signed-off-by: ShutingZhao <[email protected]>
Co-authored-by: shuting <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and realshuting authored Sep 25, 2024
1 parent 1286930 commit 5b3df16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kyverno/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ func main() {
)
ephrs, err := StartAdmissionReportsCounter(signalCtx, setup.MetadataClient)
if err != nil {
setup.Logger.Error(errors.New("failed to start admission reports watcher"), "failed to start admission reports watcher")
setup.Logger.Error(err, "failed to start admission reports watcher")
os.Exit(1)
}
reportsBreaker := breaker.NewBreaker("admission reports", func(context.Context) bool {
Expand Down

0 comments on commit 5b3df16

Please sign in to comment.