Commit fe1588eb authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #26024 from dims/fix-issue-25950

Automatic merge from submit-queue Fix useless error message in scheduler log Print the Namespace and Name instead of Kind/ApiVersion. fixes #25950
parents 82cb4c17 57f63217
...@@ -137,7 +137,7 @@ func (s *Scheduler) scheduleOne() { ...@@ -137,7 +137,7 @@ func (s *Scheduler) scheduleOne() {
// it's atomic with setting host. // it's atomic with setting host.
err := s.config.Binder.Bind(b) err := s.config.Binder.Bind(b)
if err != nil { 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.Error(pod, err)
s.config.Recorder.Eventf(pod, api.EventTypeNormal, "FailedScheduling", "Binding rejected: %v", err) s.config.Recorder.Eventf(pod, api.EventTypeNormal, "FailedScheduling", "Binding rejected: %v", err)
s.config.PodConditionUpdater.Update(pod, &api.PodCondition{ s.config.PodConditionUpdater.Update(pod, &api.PodCondition{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment