mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8843 from gyuho/log
store: silence server logs in v2v3 store tests
This commit is contained in:
commit
672d4ae93f
@ -17,13 +17,22 @@
|
||||
package store_test
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/coreos/etcd/etcdserver/api/v2v3"
|
||||
"github.com/coreos/etcd/integration"
|
||||
"github.com/coreos/etcd/store"
|
||||
|
||||
"github.com/coreos/pkg/capnslog"
|
||||
"google.golang.org/grpc/grpclog"
|
||||
)
|
||||
|
||||
func init() {
|
||||
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
|
||||
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
|
||||
}
|
||||
|
||||
type v2v3TestStore struct {
|
||||
store.Store
|
||||
clus *integration.ClusterV3
|
||||
|
Loading…
x
Reference in New Issue
Block a user