command/agent: change io.Discard to ioutil.Discard

This commit is contained in:
Kyle Nusbaum 2021-06-23 11:45:40 -05:00
parent e72a703041
commit 07cec75be2
1 changed files with 2 additions and 2 deletions

View File

@ -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},
}
}