tools/etcd-test-proxy: fix logger

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-03-30 10:47:02 -07:00
parent 5a5ac3a721
commit a77ae6df00

View File

@ -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()