command: remove unused logOutput field
This commit is contained in:
parent
823295fe2a
commit
7064dfbfba
|
@ -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,8 +42,7 @@ type cmd struct {
|
|||
|
||||
shutdownCh <-chan struct{}
|
||||
|
||||
logOutput io.Writer
|
||||
logger hclog.Logger
|
||||
logger hclog.Logger
|
||||
|
||||
// flags
|
||||
logLevel string
|
||||
|
@ -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…
Reference in New Issue