Browse Source

tools/etcd-test-proxy: fix logger

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
a77ae6df00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/etcd-test-proxy/main.go

+ 2 - 2
tools/etcd-test-proxy/main.go

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