*: disable gRPC client logs in tests

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee
2017-11-11 20:56:00 -08:00
parent deb514989c
commit 5a154e8e2b
4 changed files with 11 additions and 4 deletions

View File

@ -17,6 +17,8 @@ package integration
import (
"io/ioutil"
"github.com/coreos/etcd/clientv3"
"github.com/coreos/pkg/capnslog"
"google.golang.org/grpc/grpclog"
)
@ -25,5 +27,5 @@ const defaultLogLevel = capnslog.CRITICAL
func init() {
capnslog.SetGlobalLogLevel(defaultLogLevel)
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
clientv3.SetLogger(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
}