DRA scheduler: reduce verbosity of "Checked claim"

The original usage of `Allocate` was that the caller determines verbosity by
passing a logger with increased verbosity threshold into the call. Later that
was changed to using higher V levels inside `Allocated` itself, but the
"Checked claim" log call slipped through.
This commit is contained in:
Patrick Ohly 2024-08-22 10:53:05 +02:00
parent e85d3babf0
commit cf68eb575e

View File

@ -208,7 +208,7 @@ func (a *Allocator) Allocate(ctx context.Context, node *v1.Node) (finalResult []
alloc.requestData[requestIndices{claimIndex: claimIndex, requestIndex: requestIndex}] = requestData alloc.requestData[requestIndices{claimIndex: claimIndex, requestIndex: requestIndex}] = requestData
numDevices += requestData.numDevices numDevices += requestData.numDevices
} }
alloc.logger.Info("Checked claim", "claim", klog.KObj(claim), "numDevices", numDevices) alloc.logger.V(6).Info("Checked claim", "claim", klog.KObj(claim), "numDevices", numDevices)
// Check that we don't end up with too many results. // Check that we don't end up with too many results.
if numDevices > resourceapi.AllocationResultsMaxSize { if numDevices > resourceapi.AllocationResultsMaxSize {