mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 10:47:25 +00:00
Disable excessive logging in scheduler plugins
This commit is contained in:
@@ -122,7 +122,7 @@ func getPodAffinityMetadata(cycleState *framework.CycleState) (*predicates.PodAf
|
||||
if err != nil {
|
||||
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
|
||||
// Filter is able to handle that by computing it again.
|
||||
klog.Error(err)
|
||||
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
@@ -79,7 +79,7 @@ func getPreFilterState(cycleState *framework.CycleState) (preFilterState, error)
|
||||
if err != nil {
|
||||
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
|
||||
// Filter is able to handle that by computing it again.
|
||||
klog.Error(err)
|
||||
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
@@ -89,7 +89,7 @@ func getPodResourceRequest(cycleState *framework.CycleState) (*nodeinfo.Resource
|
||||
if err != nil {
|
||||
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
|
||||
// Filter is able to handle that by computing it again.
|
||||
klog.Errorf("reading %q from cycleState: %v", preFilterStateKey, err)
|
||||
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
@@ -123,7 +123,7 @@ func getPodTopologySpreadMetadata(cycleState *framework.CycleState) (*predicates
|
||||
if err != nil {
|
||||
// The metadata wasn't pre-computed in prefilter. We ignore the error for now since
|
||||
// we are able to handle that by computing it again (e.g. in Filter()).
|
||||
klog.Error(err)
|
||||
klog.V(5).Infof("Error reading %q from cycleState: %v", preFilterStateKey, err)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user