aboutsummaryrefslogtreecommitdiff
path: root/pkg/driver/utils.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-16 22:28:09 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-16 22:28:09 -0800
commiteff14d6532ba5ef5bfceb7c9269252bc34f063f1 (patch)
tree2764a46caa6cbd795968cd3219439ff9a38d003a /pkg/driver/utils.go
parent16a26404819644fda3afe173f578cb1b8ed3dcc6 (diff)
downloadseaweedfs-csi-driver-origin/logrus.tar.xz
seaweedfs-csi-driver-origin/logrus.zip
trying logrusorigin/logrus
Diffstat (limited to 'pkg/driver/utils.go')
-rw-r--r--pkg/driver/utils.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/driver/utils.go b/pkg/driver/utils.go
index b783f99..f75c684 100644
--- a/pkg/driver/utils.go
+++ b/pkg/driver/utils.go
@@ -5,7 +5,7 @@ import (
"strings"
"github.com/container-storage-interface/spec/lib/go/csi"
- "github.com/chrislusf/seaweedfs/weed/glog"
+ "github.com/chrislusf/seaweedfs/weed/util/log"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
@@ -50,11 +50,11 @@ func ParseEndpoint(ep string) (string, string, error) {
}
func logGRPC(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
- glog.V(3).Infof("GRPC %s request %+v", info.FullMethod, req)
+ log.Tracef("GRPC %s request %+v", info.FullMethod, req)
resp, err := handler(ctx, req)
if err != nil {
- glog.Errorf("GRPC error: %v", err)
+ log.Errorf("GRPC error: %v", err)
}
- glog.V(3).Infof("GRPC %s response %+v", info.FullMethod, resp)
+ log.Tracef("GRPC %s response %+v", info.FullMethod, resp)
return resp, err
}