Skip to content

Commit

Permalink
io.Discard not os.DevNull
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 ef6312b commit d4eb230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package forwarder
import (
"context"
"fmt"
"io"
"net/http"
"net/url"
"os"
Expand Down Expand Up @@ -85,7 +86,7 @@ func forwarders(ctx context.Context, options []*Option, config *restclient.Confi
ErrOut: os.Stderr,
}

stream.Out = os.DevNull
stream.Out = io.Discard
if option.StdOutEnabled {
stream.Out = os.Stdout
}
Expand Down

0 comments on commit d4eb230

Please sign in to comment.