From 06d01ba6ac8d3e70a6f96c36fc7f7cbb98f062b6 Mon Sep 17 00:00:00 2001 From: zedongh <248348907@qq.com> Date: Fri, 27 Dec 2024 20:21:39 +0800 Subject: [PATCH] chore: use Infof for slice taskinfo instead of InfoS log less details Signed-off-by: zedongh <248348907@qq.com> --- pkg/scheduler/plugins/capacity/capacity.go | 2 +- pkg/scheduler/plugins/gang/gang.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scheduler/plugins/capacity/capacity.go b/pkg/scheduler/plugins/capacity/capacity.go index 9c661588c0..24466a272a 100644 --- a/pkg/scheduler/plugins/capacity/capacity.go +++ b/pkg/scheduler/plugins/capacity/capacity.go @@ -138,7 +138,7 @@ func (cp *capacityPlugin) OnSessionOpen(ssn *framework.Session) { allocated.Sub(reclaimee.Resreq) victims = append(victims, reclaimee) } - klog.V(4).InfoS("Victims from capacity plugin", "victims", victims, "reclaimer", reclaimer) + klog.V(4).Infof("Victims from capacity plugin, victims=%+v reclaimer=%s", victims, reclaimer) return victims, util.Permit }) diff --git a/pkg/scheduler/plugins/gang/gang.go b/pkg/scheduler/plugins/gang/gang.go index 707e8f41a9..21223e2484 100644 --- a/pkg/scheduler/plugins/gang/gang.go +++ b/pkg/scheduler/plugins/gang/gang.go @@ -99,7 +99,7 @@ func (gp *gangPlugin) OnSessionOpen(ssn *framework.Session) { } } - klog.V(4).InfoS("Victims from Gang plugins", "victims", victims, "preemptor", preemptor) + klog.V(4).Infof("Victims from Gang plugins, victims=%+v preemptor=%s", victims, preemptor) return victims, util.Permit }