From f3c5046e605903a6531e71eac4134170f7a716e3 Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Mon, 18 Nov 2024 11:38:18 +0100 Subject: [PATCH] e2e: enable debug logging for all CLI commands --- e2e/internal/contrasttest/contrasttest.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/internal/contrasttest/contrasttest.go b/e2e/internal/contrasttest/contrasttest.go index 249bf3c04..ed3ad07c3 100644 --- a/e2e/internal/contrasttest/contrasttest.go +++ b/e2e/internal/contrasttest/contrasttest.go @@ -339,9 +339,10 @@ func (ct *ContrastTest) runAgainstCoordinator(ctx context.Context, cmd *cobra.Co return fmt.Errorf("waiting for port-forwarder-coordinator: %w", err) } - // Make the subcommand aware of the persistent flag. + // Make the subcommand aware of the persistent flags. // Do it outside the closure because declaring a flag twice panics. cmd.Flags().String("workspace-dir", "", "") + cmd.Flags().String("log-level", "debug", "") return ct.Kubeclient.WithForwardedPort(ctx, ct.Namespace, "port-forwarder-coordinator", "1313", func(addr string) error { commonArgs := append(ct.commonArgs(),