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:
parent
7562bea6db
commit
cef9a7a3d0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue