Skip to content

Commit e35c4d3

Browse files
authored
Remove noisy grpc logs and compress the ones we want into the test logs (GoogleCloudPlatform#14488)
1 parent 74b3956 commit e35c4d3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mmv1/third_party/terraform/transport/config.go.tmpl

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

568569
alwaysLoggingDeciderClient := func(ctx context.Context, fullMethodName string) bool { return true }
569-
grpc_logrus.ReplaceGrpcLogger(logrus.NewEntry(logger))
570-
571570
c.gRPCLoggingOptions = append(
572571
c.gRPCLoggingOptions, option.WithGRPCDialOption(grpc.WithUnaryInterceptor(
573572
grpc_logrus.PayloadUnaryClientInterceptor(logrus.NewEntry(logger), alwaysLoggingDeciderClient))),

0 commit comments

Comments
 (0)