1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

fix excessive logs (#8431)

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
This commit is contained in:
Jim Bugwadia 2023-09-17 21:49:06 -07:00 committed by GitHub
parent 7562bea6db
commit cef9a7a3d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,9 +153,9 @@ func reconcile(ctx context.Context, logger logr.Logger, obj interface{}, r recon
}
}
logger = logger.WithValues("key", k, "namespace", ns, "name", n)
logger.Info("reconciling ...")
logger.V(4).Info("reconciling ...")
defer func(start time.Time) {
logger.Info("done", "duration", time.Since(start).String())
logger.V(4).Info("done", "duration", time.Since(start).String())
}(start)
return r(ctx, logger, k, ns, n)
}