Skip to content

Commit

Permalink
e2e: enable debug logging for all CLI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev authored Nov 19, 2024
1 parent 4f87f7f commit e1bf6ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/internal/contrasttest/contrasttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e1bf6ad

Please sign in to comment.