Skip to content

Commit 2892815

Browse files
Remove noisy grpc logs and compress the ones we want into the test logs (#14488) (#23563)
[upstream:e35c4d3ab7dca1f7376a24b1475b84b455c9d119] Signed-off-by: Modular Magician <[email protected]>
1 parent c58dbe9 commit 2892815

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

google/transport/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,10 +1688,9 @@ func (c *Config) LoadAndValidate(ctx context.Context) error {
16881688
TimestampFormat: "2006/01/02 15:04:05",
16891689
LogFormat: "%time% [%lvl%] %msg% \n",
16901690
})
1691+
logger.SetOutput(log.Writer())
16911692

16921693
alwaysLoggingDeciderClient := func(ctx context.Context, fullMethodName string) bool { return true }
1693-
grpc_logrus.ReplaceGrpcLogger(logrus.NewEntry(logger))
1694-
16951694
c.gRPCLoggingOptions = append(
16961695
c.gRPCLoggingOptions, option.WithGRPCDialOption(grpc.WithUnaryInterceptor(
16971696
grpc_logrus.PayloadUnaryClientInterceptor(logrus.NewEntry(logger), alwaysLoggingDeciderClient))),

0 commit comments

Comments
 (0)