mirror of
https://github.com/status-im/consul.git
synced 2025-01-30 23:46:03 +00:00
command/agent: change io.Discard to ioutil.Discard
This commit is contained in:
parent
e72a703041
commit
07cec75be2
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
@ -182,7 +182,7 @@ func (c *cmd) run(args []string) int {
|
||||
if config.Logging.LogJSON {
|
||||
// Hide all non-error output when JSON logging is enabled.
|
||||
ui.Ui = &cli.BasicUI{
|
||||
BasicUi: mcli.BasicUi{ErrorWriter: c.ui.Stderr(), Writer: io.Discard},
|
||||
BasicUi: mcli.BasicUi{ErrorWriter: c.ui.Stderr(), Writer: ioutil.Discard},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user