Skip to content

Commit 8dd5797

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

google-beta/transport/config.go

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

18041805
alwaysLoggingDeciderClient := func(ctx context.Context, fullMethodName string) bool { return true }
1805-
grpc_logrus.ReplaceGrpcLogger(logrus.NewEntry(logger))
1806-
18071806
c.gRPCLoggingOptions = append(
18081807
c.gRPCLoggingOptions, option.WithGRPCDialOption(grpc.WithUnaryInterceptor(
18091808
grpc_logrus.PayloadUnaryClientInterceptor(logrus.NewEntry(logger), alwaysLoggingDeciderClient))),

0 commit comments

Comments
 (0)