Skip to content

Commit

Permalink
Optional Println
Browse files Browse the repository at this point in the history
Signed-off-by: hfuss <[email protected]>
  • Loading branch information
onelapahead committed Oct 1, 2022
1 parent d4eb230 commit ec7ef7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ func handleOptions(ctx context.Context, options []*Option, config *restclient.Co
}
pod := pods.Items[0]

fmt.Printf("Forwarding service: %v to pod %v ...\n", option.ServiceName, pod.Name)
if option.StdOutEnabled {
fmt.Printf("Forwarding service: %v to pod %v ...\n", option.ServiceName, pod.Name)
}

podOptions[index] = buildPodOption(option, &pod)
return nil
Expand Down

0 comments on commit ec7ef7c

Please sign in to comment.