mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/etcd-test-proxy: fix logger
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
5a5ac3a721
commit
a77ae6df00
@ -28,7 +28,7 @@ import (
|
||||
|
||||
"github.com/coreos/etcd/pkg/transport"
|
||||
|
||||
"google.golang.org/grpc/grpclog"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
var from string
|
||||
@ -74,7 +74,7 @@ $ ETCDCTL_API=3 ./bin/etcdctl --endpoints localhost:23790 put foo bar`)
|
||||
To: url.URL{Scheme: "tcp", Host: to},
|
||||
}
|
||||
if verbose {
|
||||
cfg.Logger = grpclog.NewLoggerV2WithVerbosity(os.Stderr, os.Stderr, os.Stderr, 5)
|
||||
cfg.Logger = zap.NewExample()
|
||||
}
|
||||
p := transport.NewProxy(cfg)
|
||||
<-p.Ready()
|
||||
|
Loading…
x
Reference in New Issue
Block a user