mirror of https://github.com/status-im/consul.git
command: remove unused logOutput field
This commit is contained in:
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,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