From 76be319571be7b48e2c66287fca05958439e0f9e Mon Sep 17 00:00:00 2001 From: hub-Prateek Date: Fri, 24 Nov 2023 10:58:33 +0530 Subject: [PATCH] Optimzed the code --- pkg/scheduler/framework/runtime/framework.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/scheduler/framework/runtime/framework.go b/pkg/scheduler/framework/runtime/framework.go index a916c3964bd..85274353aea 100644 --- a/pkg/scheduler/framework/runtime/framework.go +++ b/pkg/scheduler/framework/runtime/framework.go @@ -355,9 +355,7 @@ func NewFramework(ctx context.Context, r Registry, profile *config.KubeScheduler options.captureProfile(outputProfile) } - m := *f.ListPlugins() - loggerV := logger.V(2) - loggerV.Info("Plugins", "config.Plugins", m) + logger.V(2).Info("Plugins enabled and disabled at each extension point", "config.Plugins", *f.ListPlugins()) f.setInstrumentedPlugins() return f, nil