logger: Align with the previous logger verbosity

This commit is contained in:
Jan Chaloupka
2025-06-25 09:27:57 +02:00
parent ace001c618
commit 89eab59d82
2 changed files with 2 additions and 2 deletions
@@ -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
}
@@ -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