Skip to content

Commit 935dcbd

Browse files
committed
log config
1 parent a6d7870 commit 935dcbd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scaletest/trafficgen/run.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ func (r *Runner) Run(ctx context.Context, _ string, logs io.Writer) error {
5555
bytesPerTick = r.cfg.BytesPerSecond / r.cfg.TicksPerSecond
5656
)
5757

58+
logger.Info(ctx, "config",
59+
slog.F("agent_id", agentID),
60+
slog.F("reconnect", reconnect),
61+
slog.F("height", height),
62+
slog.F("width", width),
63+
slog.F("tick_interval", tickInterval),
64+
slog.F("bytes_per_tick", bytesPerTick),
65+
)
66+
5867
// Set a deadline for stopping the text.
5968
start := time.Now()
6069
deadlineCtx, cancel := context.WithDeadline(ctx, start.Add(r.cfg.Duration))

0 commit comments

Comments
 (0)