*: disable grpc client log in tests by default
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
@ -14,8 +14,14 @@
|
|||||||
|
|
||||||
package integration
|
package integration
|
||||||
|
|
||||||
import "github.com/coreos/pkg/capnslog"
|
import (
|
||||||
|
"io/ioutil"
|
||||||
|
|
||||||
|
"github.com/coreos/pkg/capnslog"
|
||||||
|
"google.golang.org/grpc/grpclog"
|
||||||
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
|
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
|
||||||
|
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,14 @@
|
|||||||
|
|
||||||
package ordering
|
package ordering
|
||||||
|
|
||||||
import "github.com/coreos/pkg/capnslog"
|
import (
|
||||||
|
"io/ioutil"
|
||||||
|
|
||||||
|
"github.com/coreos/pkg/capnslog"
|
||||||
|
"google.golang.org/grpc/grpclog"
|
||||||
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
|
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
|
||||||
|
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
|
||||||
}
|
}
|
||||||
|
@ -14,10 +14,16 @@
|
|||||||
|
|
||||||
package integration
|
package integration
|
||||||
|
|
||||||
import "github.com/coreos/pkg/capnslog"
|
import (
|
||||||
|
"io/ioutil"
|
||||||
|
|
||||||
|
"github.com/coreos/pkg/capnslog"
|
||||||
|
"google.golang.org/grpc/grpclog"
|
||||||
|
)
|
||||||
|
|
||||||
const defaultLogLevel = capnslog.CRITICAL
|
const defaultLogLevel = capnslog.CRITICAL
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
capnslog.SetGlobalLogLevel(defaultLogLevel)
|
capnslog.SetGlobalLogLevel(defaultLogLevel)
|
||||||
|
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user