1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: print out errors (#11218)

Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
shuting 2024-09-25 13:05:06 +08:00 committed by GitHub
parent 9541608182
commit db88e2de17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {