command: remove unused logOutput field

pull/7546/head
Daniel Nephin 5 years ago
parent dd40a1535e
commit 09d0876b6c

@ -3,7 +3,6 @@ package agent
import (
"flag"
"fmt"
"io"
"os"
"os/signal"
"path/filepath"
@ -59,7 +58,6 @@ type cmd struct {
versionHuman string
shutdownCh <-chan struct{}
flagArgs config.Flags
logOutput io.Writer
logger hclog.InterceptLogger
}
@ -205,7 +203,6 @@ func (c *cmd) run(args []string) int {
if !ok {
return 1
}
c.logOutput = logOutput
c.logger = logger

@ -3,7 +3,6 @@ package proxy
import (
"flag"
"fmt"
"io"
"log"
"net"
"net/http"
@ -43,7 +42,6 @@ type cmd struct {
shutdownCh <-chan struct{}
logOutput io.Writer
logger hclog.Logger
// flags
@ -138,12 +136,10 @@ func (c *cmd) Run(args []string) int {
Name: logging.Proxy,
LogJSON: c.logJSON,
}
logger, logGate, logOutput, ok := logging.Setup(logConfig, c.UI)
logger, logGate, _, ok := logging.Setup(logConfig, c.UI)
if !ok {
return 1
}
c.logOutput = logOutput
c.logger = logger
// Enable Pprof if needed

Loading…
Cancel
Save