From cd2cceb364307547b239e7c5e106198fd61302eb Mon Sep 17 00:00:00 2001 From: gmarek Date: Tue, 22 Nov 2016 11:14:12 +0100 Subject: [PATCH] Minor scheduler cleanup --- plugin/pkg/scheduler/algorithm/predicates/predicates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/scheduler/algorithm/predicates/predicates.go b/plugin/pkg/scheduler/algorithm/predicates/predicates.go index 7665bcc5572..e1816ce27e0 100644 --- a/plugin/pkg/scheduler/algorithm/predicates/predicates.go +++ b/plugin/pkg/scheduler/algorithm/predicates/predicates.go @@ -525,7 +525,7 @@ func PodFitsResources(pod *v1.Pod, meta interface{}, nodeInfo *schedulercache.No } } - if glog.V(10) { + if glog.V(10) && len(predicateFails) == 0 { // We explicitly don't do glog.V(10).Infof() to avoid computing all the parameters if this is // not logged. There is visible performance gain from it. glog.Infof("Schedule Pod %+v on Node %+v is allowed, Node is running only %v out of %v Pods.",