Skip to content

Commit 96c9838

Browse files
authored
fix(cli): scaletest: do not screenshot if verbose=false (#12317)
1 parent 2ca8248 commit 96c9838

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cli/exp_scaletest.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,11 @@ func (r *RootCmd) scaletestDashboard() *clibase.Cmd {
12141214
// This could be useful for debugging, but it will blow up the disk.
12151215
if r.verbose {
12161216
config.Screenshot = dashboard.Screenshot
1217+
} else {
1218+
// Disable screenshots otherwise.
1219+
config.Screenshot = func(context.Context, string) (string, error) {
1220+
return "/dev/null", nil
1221+
}
12171222
}
12181223
//nolint:gocritic
12191224
logger.Info(ctx, "runner config", slog.F("interval", interval), slog.F("jitter", jitter), slog.F("headless", headless), slog.F("trace", tracingEnabled))

0 commit comments

Comments
 (0)