From c0cffb8a34a94f112b47408d9ddd54c786ad4cca Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Mon, 18 Jun 2018 12:45:22 -0400 Subject: [PATCH] Increase glog level of some scheduling errors. --- pkg/scheduler/factory/factory.go | 2 +- pkg/scheduler/scheduler.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/scheduler/factory/factory.go b/pkg/scheduler/factory/factory.go index 2082e22fee..8c4f56e4c8 100644 --- a/pkg/scheduler/factory/factory.go +++ b/pkg/scheduler/factory/factory.go @@ -1414,7 +1414,7 @@ type podConditionUpdater struct { } func (p *podConditionUpdater) Update(pod *v1.Pod, condition *v1.PodCondition) error { - glog.V(2).Infof("Updating pod condition for %s/%s to (%s==%s)", pod.Namespace, pod.Name, condition.Type, condition.Status) + glog.V(3).Infof("Updating pod condition for %s/%s to (%s==%s)", pod.Namespace, pod.Name, condition.Type, condition.Status) if podutil.UpdatePodCondition(&pod.Status, condition) { _, err := p.Client.CoreV1().Pods(pod.Namespace).UpdateStatus(pod) return err diff --git a/pkg/scheduler/scheduler.go b/pkg/scheduler/scheduler.go index c028441f52..8e6fc61ae0 100644 --- a/pkg/scheduler/scheduler.go +++ b/pkg/scheduler/scheduler.go @@ -192,7 +192,6 @@ func (sched *Scheduler) Config() *Config { func (sched *Scheduler) schedule(pod *v1.Pod) (string, error) { host, err := sched.config.Algorithm.Schedule(pod, sched.config.NodeLister) if err != nil { - glog.V(1).Infof("Failed to schedule pod: %v/%v", pod.Namespace, pod.Name) pod = pod.DeepCopy() sched.config.Error(pod, err) sched.config.Recorder.Eventf(pod, v1.EventTypeWarning, "FailedScheduling", "%v", err)