Skip to content

Commit bb552a6

Browse files
authored
Merge pull request #77 from msau42/release-1.0
Cherry-pick #76 to release-1.0: Use logging util
2 parents 7f0070e + df6afdb commit bb552a6

File tree

20 files changed

+8689
-159
lines changed

20 files changed

+8689
-159
lines changed

Gopkg.lock

Lines changed: 29 additions & 158 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,7 @@ required = [
5252
[[constraint]]
5353
name = "k8s.io/apiextensions-apiserver"
5454
version = "kubernetes-1.13.0-beta.1"
55+
56+
[[constraint]]
57+
name = "github.com/kubernetes-csi/csi-lib-utils"
58+
version = "0.1.0"

pkg/connection/connection.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/golang/glog"
2828
"github.com/golang/protobuf/ptypes"
2929
"github.com/golang/protobuf/ptypes/timestamp"
30+
"github.com/kubernetes-csi/csi-lib-utils/protosanitizer"
3031
"google.golang.org/grpc"
3132
"google.golang.org/grpc/connectivity"
3233
"k8s.io/api/core/v1"
@@ -267,8 +268,9 @@ func (c *csiConnection) Close() error {
267268

268269
func logGRPC(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
269270
glog.V(5).Infof("GRPC call: %s", method)
271+
glog.V(5).Infof("GRPC request: %s", protosanitizer.StripSecrets(req))
270272
err := invoker(ctx, method, req, reply, cc, opts...)
271-
glog.V(5).Infof("GRPC response: %+v", reply)
273+
glog.V(5).Infof("GRPC response: %s", protosanitizer.StripSecrets(reply))
272274
glog.V(5).Infof("GRPC error: %v", err)
273275
return err
274276
}

vendor/github.com/kubernetes-csi/csi-lib-utils/CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/kubernetes-csi/csi-lib-utils/Gopkg.lock

Lines changed: 154 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/kubernetes-csi/csi-lib-utils/Gopkg.toml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)