From 07cec75be28eb46ce0d873f474782b88e986c281 Mon Sep 17 00:00:00 2001 From: Kyle Nusbaum Date: Wed, 23 Jun 2021 11:45:40 -0500 Subject: [PATCH] command/agent: change io.Discard to ioutil.Discard --- command/agent/agent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/agent/agent.go b/command/agent/agent.go index a0a3601c64..fade33e6bc 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -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}, } }