From 89eab59d8237dca6895ccde4cd32b4d220f923fd Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Wed, 25 Jun 2025 09:27:57 +0200 Subject: [PATCH] logger: Align with the previous logger verbosity --- pkg/framework/plugins/removefailedpods/failedpods.go | 2 +- .../plugins/removepodshavingtoomanyrestarts/toomanyrestarts.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/framework/plugins/removefailedpods/failedpods.go b/pkg/framework/plugins/removefailedpods/failedpods.go index 7e8b5def4..c414f9f24 100644 --- a/pkg/framework/plugins/removefailedpods/failedpods.go +++ b/pkg/framework/plugins/removefailedpods/failedpods.go @@ -73,7 +73,7 @@ func New(ctx context.Context, args runtime.Object, handle frameworktypes.Handle) podFilter = podutil.WrapFilterFuncs(podFilter, func(pod *v1.Pod) bool { if err := validateCanEvict(pod, failedPodsArgs); err != nil { - logger.Error(fmt.Errorf("ignoring pod for eviction due to: %s", err.Error()), "pod", klog.KObj(pod)) + logger.V(4).Info(fmt.Sprintf("ignoring pod for eviction due to: %s", err.Error()), "pod", klog.KObj(pod)) return false } diff --git a/pkg/framework/plugins/removepodshavingtoomanyrestarts/toomanyrestarts.go b/pkg/framework/plugins/removepodshavingtoomanyrestarts/toomanyrestarts.go index d2e272b27..7e6a1848b 100644 --- a/pkg/framework/plugins/removepodshavingtoomanyrestarts/toomanyrestarts.go +++ b/pkg/framework/plugins/removepodshavingtoomanyrestarts/toomanyrestarts.go @@ -72,7 +72,7 @@ func New(ctx context.Context, args runtime.Object, handle frameworktypes.Handle) podFilter = podutil.WrapFilterFuncs(podFilter, func(pod *v1.Pod) bool { if err := validateCanEvict(pod, tooManyRestartsArgs); err != nil { - logger.Error(fmt.Errorf("ignoring pod for eviction due to: %s", err.Error()), "pod", klog.KObj(pod)) + logger.V(4).Info(fmt.Sprintf("ignoring pod for eviction due to: %s", err.Error()), "pod", klog.KObj(pod)) return false } return true