mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 13:57:38 +00:00
The go-logr package ignores verbosity level (V()) for Error() calls, causing these logs to always print regardless of the -v flag setting. Convert to Info() with "err" key-value pair to respect verbosity levels. This change covers 23 instances across kubelet components: - prober (4 instances) - lifecycle (4 instances) - stats (3 instances) - kuberuntime (2 instances) - pleg (1 instance) - allocation (1 instance) - cm/devicemanager (1 instance) - cm/dra (1 instance) - metrics/collectors (1 instance) - kubelet.go (3 instances) - images/pullmanager (2 instances) Ref: https://github.com/kubernetes/kubernetes/issues/136027 Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>