scheduler_perf: use different log names for different DRA drivers

This helps when using -feature-gate=ContextualLogging=true and running the
SchedulingWithMultipleResourceClaims test case because then output from the two
driver instances is easy to distinguish.
This commit is contained in:
Patrick Ohly 2023-08-30 15:13:03 +02:00
parent 6eca142082
commit 78f3b76390

View File

@ -216,7 +216,7 @@ func (op *createResourceDriverOp) run(ctx context.Context, tb testing.TB, client
wg.Add(1)
go func() {
defer wg.Done()
ctx := klog.NewContext(ctx, klog.LoggerWithName(klog.FromContext(ctx), "DRA test driver"))
ctx := klog.NewContext(ctx, klog.LoggerWithName(klog.FromContext(ctx), op.DriverName))
controller.Run(ctx, 5 /* workers */)
}()
tb.Cleanup(func() {