Merge pull request #30676 from m1093782566/improve-pod-log-output-format
Automatic merge from submit-queue
[Scheduler] Improve pod log output debuggability
Address issue is #30675
The result of my expirments shows that both `glog.Infof("%v", pod)` and `glog.Infof("%+v", pod)` can't output useful information of a pod, it can only output `kind:"" apiVersion:""`.
`%#v` can output the whole content of pod, but it seems too much!
So, my opinion is output pod info use the format of `%v` to print`pod.Namespace/pod.Name` instead of the pod **object** in both [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/scheduler.go#L96) and [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/scheduler.go#L100).
@wojtek-t
Showing
Please
register
or
sign in
to comment