From e1bf6ada5bfa18ea244a6baf28345a9be298985d Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Tue, 19 Nov 2024 13:54:51 +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(),