From a40e8ed75d4665a646f02d8eaf650fde0cc67414 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Thu, 23 May 2024 15:36:35 +0100 Subject: [PATCH] Limit number of lines in view --- hammer/hammer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hammer/hammer.go b/hammer/hammer.go index 26ebee3..29d0962 100644 --- a/hammer/hammer.go +++ b/hammer/hammer.go @@ -308,6 +308,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)