Fix useless error message in scheduler log

Print the Namespace and Name instead of Kind/ApiVersion.

fixes #25950
pull/6/head
Davanum Srinivas 2016-05-20 08:10:33 -04:00
parent bd8033e2b0
commit 57f6321788
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ func (s *Scheduler) scheduleOne() {
// it's atomic with setting host.
err := s.config.Binder.Bind(b)
if err != nil {
glog.V(1).Infof("Failed to bind pod: %+v", err)
glog.V(1).Infof("Failed to bind pod: %v/%v", pod.Namespace, pod.Name)
s.config.Error(pod, err)
s.config.Recorder.Eventf(pod, api.EventTypeNormal, "FailedScheduling", "Binding rejected: %v", err)
s.config.PodConditionUpdater.Update(pod, &api.PodCondition{