Skip to content

Commit

Permalink
Fix useless error message in scheduler log
Browse files Browse the repository at this point in the history
Print the Namespace and Name instead of Kind/ApiVersion.

fixes kubernetes#25950
  • Loading branch information
dims committed May 21, 2016
1 parent bd8033e commit 57f6321
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 57f6321

Please sign in to comment.