Skip to content

Commit

Permalink
fix excessive logs (kyverno#8431)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
  • Loading branch information
JimBugwadia authored Sep 18, 2023
1 parent 7562bea commit cef9a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/controller/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit cef9a7a

Please sign in to comment.