Merge pull request #106228 from sanchayanghosh/104868-scheduler-logging-config-format-incorrectly

Changed the Info type so that the config file can be displayed withou…
This commit is contained in:
Kubernetes Prow Robot 2021-11-09 11:28:12 -08:00 committed by GitHub
commit 398e028d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ func LogOrWriteConfig(fileName string, cfg *config.KubeSchedulerConfiguration, c
} }
if klog.V(2).Enabled() { 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 { if len(fileName) > 0 {