Skip to content

Commit 1ccb26d

Browse files
committed
remove logging env variables during scheduling
1 parent 6dec8b4 commit 1ccb26d

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

pkg/epp/scheduling/filter_test.go

+2-14
Original file line numberDiff line numberDiff line change
@@ -449,23 +449,11 @@ func TestLoRASoftAffinityDistribution(t *testing.T) {
449449

450450
// Set a specific test value for this test
451451
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
459453

460454
// Ensure we restore the original threshold when test completes
461455
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
469457
}()
470458

471459

pkg/epp/scheduling/scheduler.go

-5
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ type Scheduler struct {
148148
func (s *Scheduler) Schedule(ctx context.Context, req *LLMRequest) (targetPod backendmetrics.PodMetrics, err error) {
149149
logger := log.FromContext(ctx).WithValues("request", req)
150150

151-
// Log current configuration values for debugging purposes.
152-
logger.V(logutil.TRACE).Info("Scheduler configuration",
153-
"config", config,
154-
)
155-
156151
podMetrics := s.datastore.PodGetAll()
157152
logger.V(logutil.DEBUG).Info(fmt.Sprintf("Scheduling a request. Metrics: %+v", podMetrics))
158153

0 commit comments

Comments
 (0)