From 5c99f3a24e3293769986ab1bea50a5fc3f413fe5 Mon Sep 17 00:00:00 2001 From: hub-Prateek Date: Fri, 24 Nov 2023 00:19:42 +0530 Subject: [PATCH] Logged the return value of ListPlugins --- pkg/scheduler/framework/runtime/framework.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/scheduler/framework/runtime/framework.go b/pkg/scheduler/framework/runtime/framework.go index e854c7e540e..a916c3964bd 100644 --- a/pkg/scheduler/framework/runtime/framework.go +++ b/pkg/scheduler/framework/runtime/framework.go @@ -356,13 +356,8 @@ func NewFramework(ctx context.Context, r Registry, profile *config.KubeScheduler } m := *f.ListPlugins() - pluginMap := reflect.ValueOf(m) - typeOfMap := pluginMap.Type() - - for i := 0; i < pluginMap.NumField(); i++ { - loggerV := logger.V(2) - loggerV.Info("Plugins enabled for", "extension", typeOfMap.Field(i).Name, "plugins", pluginMap.Field(i).Interface()) - } + loggerV := logger.V(2) + loggerV.Info("Plugins", "config.Plugins", m) f.setInstrumentedPlugins() return f, nil