Skip to content

Commit 8fae8e5

Browse files
committed
Disable excessive logging in scheduler plugins
1 parent e680ad7 commit 8fae8e5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func getPodAffinityMetadata(cycleState *framework.CycleState) (*predicates.PodAf
122122
if err != nil {
123123
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
124124
// Filter is able to handle that by computing it again.
125-
klog.Error(err)
125+
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
126126
return nil, nil
127127
}
128128

pkg/scheduler/framework/plugins/nodeports/node_ports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func getPreFilterState(cycleState *framework.CycleState) (preFilterState, error)
7979
if err != nil {
8080
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
8181
// Filter is able to handle that by computing it again.
82-
klog.Error(err)
82+
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
8383
return nil, nil
8484
}
8585

pkg/scheduler/framework/plugins/noderesources/fit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func getPodResourceRequest(cycleState *framework.CycleState) (*nodeinfo.Resource
8989
if err != nil {
9090
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
9191
// Filter is able to handle that by computing it again.
92-
klog.Errorf("reading %q from cycleState: %v", preFilterStateKey, err)
92+
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
9393
return nil, nil
9494
}
9595

pkg/scheduler/framework/plugins/podtopologyspread/pod_topology_spread.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func getPodTopologySpreadMetadata(cycleState *framework.CycleState) (*predicates
123123
if err != nil {
124124
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
125125
// we are able to handle that by computing it again (e.g. in Filter()).
126-
klog.Error(err)
126+
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
127127
return nil, nil
128128
}
129129

0 commit comments

Comments
 (0)