File tree 2 files changed +2
-19
lines changed
2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -449,23 +449,11 @@ func TestLoRASoftAffinityDistribution(t *testing.T) {
449
449
450
450
// Set a specific test value for this test
451
451
testThreshold := 0.75 // 75%
452
- // Inline update of threshold value
453
- func (newValue float64 , logger logr.Logger ) {
454
- logger .V (logutil .DEFAULT ).Info ("Updating LoRA affinity threshold" ,
455
- "oldValue" , config .LoraAffinityThreshold ,
456
- "newValue" , newValue )
457
- config .LoraAffinityThreshold = newValue
458
- }(testThreshold , logger )
452
+ config .LoraAffinityThreshold = testThreshold
459
453
460
454
// Ensure we restore the original threshold when test completes
461
455
defer func () {
462
- // Inline update to restore original value
463
- func (newValue float64 , logger logr.Logger ) {
464
- logger .V (logutil .DEFAULT ).Info ("Updating LoRA affinity threshold" ,
465
- "oldValue" , config .LoraAffinityThreshold ,
466
- "newValue" , newValue )
467
- config .LoraAffinityThreshold = newValue
468
- }(originalThreshold , logger )
456
+ config .LoraAffinityThreshold = originalThreshold
469
457
}()
470
458
471
459
Original file line number Diff line number Diff line change @@ -148,11 +148,6 @@ type Scheduler struct {
148
148
func (s * Scheduler ) Schedule (ctx context.Context , req * LLMRequest ) (targetPod backendmetrics.PodMetrics , err error ) {
149
149
logger := log .FromContext (ctx ).WithValues ("request" , req )
150
150
151
- // Log current configuration values for debugging purposes.
152
- logger .V (logutil .TRACE ).Info ("Scheduler configuration" ,
153
- "config" , config ,
154
- )
155
-
156
151
podMetrics := s .datastore .PodGetAll ()
157
152
logger .V (logutil .DEBUG ).Info (fmt .Sprintf ("Scheduling a request. Metrics: %+v" , podMetrics ))
158
153
You can’t perform that action at this time.
0 commit comments