mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Change error log to info log in pkg/controller/garbagecollector/
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user