Disable excessive logging in scheduler plugins

This commit is contained in:
Jacek Kaniuk 2019-12-16 14:31:26 +01:00
parent e680ad7156
commit 8fae8e54af
4 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}