From 2131fdb84cac557544f0c9516482f8f159fd9b09 Mon Sep 17 00:00:00 2001 From: sanchayanghosh <86283153+sanchayanghosh@users.noreply.github.com> Date: Mon, 8 Nov 2021 17:45:35 +0545 Subject: [PATCH] Changed the Info type so that the config file can be displayed without escape characters showing --- cmd/kube-scheduler/app/options/configfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kube-scheduler/app/options/configfile.go b/cmd/kube-scheduler/app/options/configfile.go index 8727c1c62f2..f1490dbccb1 100644 --- a/cmd/kube-scheduler/app/options/configfile.go +++ b/cmd/kube-scheduler/app/options/configfile.go @@ -93,7 +93,7 @@ func LogOrWriteConfig(fileName string, cfg *config.KubeSchedulerConfiguration, c } if klog.V(2).Enabled() { - klog.InfoS("Using component config", "config", buf.String()) + klog.Info("Using component config", "\n-------------------------Configuration File Contents Start Here---------------------- \n", buf.String(), "\n------------------------------------Configuration File Contents End Here---------------------------------\n") } if len(fileName) > 0 {