A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/kubernetes-csi/external-attacher/commit/10dbd73f778674e7cbb2d52eb0aae0d2fc330be6 below:

Scrub Secret information in logGRPC() · kubernetes-csi/external-attacher@10dbd73 · GitHub

@@ -25,6 +25,7 @@ import (

25 25 26 26

"github.com/container-storage-interface/spec/lib/go/csi/v0"

27 27

"github.com/golang/glog"

28 +

"github.com/kubernetes-csi/csi-lib-utils/protosanitizer"

28 29

"google.golang.org/grpc"

29 30

"google.golang.org/grpc/codes"

30 31

"google.golang.org/grpc/connectivity"

@@ -233,9 +234,9 @@ func (c *csiConnection) Close() error {

233 234 234 235

func logGRPC(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {

235 236

glog.V(5).Infof("GRPC call: %s", method)

236 -

glog.V(5).Infof("GRPC request: %+v", req)

237 +

glog.V(5).Infof("GRPC request: %s", protosanitizer.StripSecretsCSI03(req))

237 238

err := invoker(ctx, method, req, reply, cc, opts...)

238 -

glog.V(5).Infof("GRPC response: %+v", reply)

239 +

glog.V(5).Infof("GRPC response: %s", protosanitizer.StripSecretsCSI03(reply))

239 240

glog.V(5).Infof("GRPC error: %v", err)

240 241

return err

241 242

}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4