Change error log to info log in pkg/controller/garbagecollector/

This commit is contained in:
Peter Nguyen
2026-01-05 13:13:16 -08:00
parent 40d19f0a05
commit 384e516093
2 changed files with 3 additions and 3 deletions

View File

@@ -359,8 +359,8 @@ func (gc *GarbageCollector) attemptToDeleteWorker(ctx context.Context, item inte
// 2. The reference is to an invalid group/version. We don't currently
// have a way to distinguish this from a valid type we will recognize
// after the next discovery sync.
// For now, record the error and retry.
logger.V(5).Error(err, "error syncing item", "item", n.identity)
// For now, log the error and retry.
logger.V(5).Info("error syncing item", "item", n.identity, "err", err)
} else {
utilruntime.HandleError(fmt.Errorf("error syncing item %s: %v", n, err))
}

View File

@@ -222,7 +222,7 @@ func (gb *GraphBuilder) controllerFor(logger klog.Logger, resource schema.GroupV
shared, err := gb.sharedInformers.ForResource(resource)
if err != nil {
logger.V(4).Error(err, "unable to use a shared informer", "resource", resource, "kind", kind)
logger.V(4).Info("unable to use a shared informer", "resource", resource, "kind", kind, "err", err)
return nil, nil, err
}
logger.V(4).Info("using a shared informer", "resource", resource, "kind", kind)