Skip to content

Commit

Permalink
Merge pull request kubernetes#26024 from dims/fix-issue-25950
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Fix useless error message in scheduler log

Print the Namespace and Name instead of Kind/ApiVersion.

fixes kubernetes#25950
  • Loading branch information
k8s-merge-robot committed May 22, 2016
2 parents 82cb4c1 + 57f6321 commit fe1588e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit fe1588e

Please sign in to comment.