From 1a6cfdb034baf55e3e35bf97ac8347f79bef4493 Mon Sep 17 00:00:00 2001 From: tstromberg Date: Tue, 29 Oct 2019 13:15:21 -0700 Subject: [PATCH 1/2] Cut down log noise by just showing problems by default --- test/integration/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/helpers.go b/test/integration/helpers.go index 7c3688bac3..18e252fe66 100644 --- a/test/integration/helpers.go +++ b/test/integration/helpers.go @@ -177,7 +177,7 @@ func CleanupWithLogs(t *testing.T, profile string, cancel context.CancelFunc) { t.Helper() if t.Failed() && *postMortemLogs { t.Logf("%s failed, collecting logs ...", t.Name()) - rr, err := Run(t, exec.Command(Target(), "-p", profile, "logs", "-n", "100")) + rr, err := Run(t, exec.Command(Target(), "-p", profile, "logs", "--show-problems")) if err != nil { t.Logf("failed logs error: %v", err) } From 02d7b74d10c1eece822188228bc3063216431408 Mon Sep 17 00:00:00 2001 From: tstromberg Date: Tue, 29 Oct 2019 15:45:07 -0700 Subject: [PATCH 2/2] Flag should be --problems --- test/integration/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/helpers.go b/test/integration/helpers.go index 18e252fe66..3f0aaf94d2 100644 --- a/test/integration/helpers.go +++ b/test/integration/helpers.go @@ -177,7 +177,7 @@ func CleanupWithLogs(t *testing.T, profile string, cancel context.CancelFunc) { t.Helper() if t.Failed() && *postMortemLogs { t.Logf("%s failed, collecting logs ...", t.Name()) - rr, err := Run(t, exec.Command(Target(), "-p", profile, "logs", "--show-problems")) + rr, err := Run(t, exec.Command(Target(), "-p", profile, "logs", "--problems")) if err != nil { t.Logf("failed logs error: %v", err) }