Skip to content

Commit

Permalink
Merge pull request #180 from msau42/release-1.0
Browse files Browse the repository at this point in the history
Cherry pick #179 to release-1.0: Use logging util
  • Loading branch information
k8s-ci-robot authored Nov 30, 2018
2 parents eb8723e + d757843 commit 3a65c77
Show file tree
Hide file tree
Showing 20 changed files with 8,694 additions and 178 deletions.
210 changes: 34 additions & 176 deletions Gopkg.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@
[[constraint]]
name = "k8s.io/apiserver"
version = "kubernetes-1.13.0-beta.1"

[[constraint]]
name = "github.com/kubernetes-csi/csi-lib-utils"
version = "0.1.0"
5 changes: 3 additions & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/controller"
"github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/util"

"github.com/kubernetes-csi/csi-lib-utils/protosanitizer"
snapapi "github.com/kubernetes-csi/external-snapshotter/pkg/apis/volumesnapshot/v1alpha1"
snapclientset "github.com/kubernetes-csi/external-snapshotter/pkg/client/clientset/versioned"

Expand Down Expand Up @@ -121,9 +122,9 @@ var (
//TODO consolidate ane librarize
func logGRPC(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
glog.V(5).Infof("GRPC call: %s", method)
glog.V(5).Infof("GRPC request: %+v", req)
glog.V(5).Infof("GRPC request: %s", protosanitizer.StripSecrets(req))
err := invoker(ctx, method, req, reply, cc, opts...)
glog.V(5).Infof("GRPC response: %+v", reply)
glog.V(5).Infof("GRPC response: %s", protosanitizer.StripSecrets(reply))
glog.V(5).Infof("GRPC error: %v", err)
return err
}
Expand Down
31 changes: 31 additions & 0 deletions vendor/github.com/kubernetes-csi/csi-lib-utils/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

154 changes: 154 additions & 0 deletions vendor/github.com/kubernetes-csi/csi-lib-utils/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vendor/github.com/kubernetes-csi/csi-lib-utils/Gopkg.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3a65c77

Please sign in to comment.