mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Minor scheduler cleanup
This commit is contained in:
parent
320b30479f
commit
cd2cceb364
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user