Skip to content

Commit

Permalink
Limit number of lines in view
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed May 23, 2024
1 parent 25280eb commit 4b822af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hammer/hammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ func hostUI(ctx context.Context, hammer *Hammer) {
// Log view box
logView := tview.NewTextView()
logView.ScrollToEnd()
logView.SetMaxLines(10000)
grid.AddItem(logView, 1, 0, 1, 1, 0, 0, false)
if err := flag.Set("logtostderr", "false"); err != nil {
klog.Exitf("Failed to set flag: %v", err)
Expand Down

0 comments on commit 4b822af

Please sign in to comment.