Skip to content

Commit

Permalink
Move assignment to the top
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <[email protected]>
  • Loading branch information
ChrsMark committed Dec 18, 2022
1 parent 4ccc64f commit 875113a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/cmd/sysdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func newCmdSysdump() *cobra.Command {
Short: "Collects information required to troubleshoot issues with Cilium and Hubble",
Long: ``,
RunE: func(cmd *cobra.Command, args []string) error {
sysdumpOptions.CiliumNamespace = namespace
// Silence klog to avoid displaying "throttling" messages - those are expected.
klog.SetOutput(io.Discard)
// Collect the sysdump.
sysdumpOptions.CiliumNamespace = namespace
collector, err := sysdump.NewCollector(k8sClient, sysdumpOptions, time.Now(), Version)
if err != nil {
return fmt.Errorf("failed to create sysdump collector: %v", err)
Expand Down

0 comments on commit 875113a

Please sign in to comment.