mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix: reduce logs in controllers when an item is not found (#9509)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
b7eea2faa9
commit
bc2c50058a
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ func handleErr(ctx context.Context, logger logr.Logger, metric *controllerMetric
|
|||
if err == nil {
|
||||
queue.Forget(obj)
|
||||
} else if errors.IsNotFound(err) {
|
||||
logger.Info("Dropping request from the queue", "obj", obj, "error", err.Error())
|
||||
logger.V(4).Info("Dropping request from the queue", "obj", obj, "error", err.Error())
|
||||
queue.Forget(obj)
|
||||
} else if queue.NumRequeues(obj) < maxRetries {
|
||||
logger.Info("Retrying request", "obj", obj, "error", err.Error())
|
||||
|
|
Loading…
Add table
Reference in a new issue