Changed the Info type so that the config file can be displayed without escape characters showing

This commit is contained in:
sanchayanghosh 2021-11-08 17:45:35 +05:45
parent 582c4ebe26
commit 2131fdb84c
No known key found for this signature in database
GPG Key ID: 9FAEC81711964E97

View File

@ -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 {