From bd3254b53f78b8f42e31ea50cbf2e0d7e87b2bbc Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 25 Feb 2020 17:24:08 -0800 Subject: [PATCH] adjust logging --- weed/filesys/wfs.go | 2 +- weed/pb/filer_pb/filer_pb_helper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 4807e367b..37bb92acc 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -99,7 +99,7 @@ func (wfs *WFS) WithFilerClient(ctx context.Context, fn func(context.Context, fi return nil } if strings.Contains(err.Error(), "context canceled") { - glog.V(2).Infoln("retry context canceled request...") + glog.V(0).Infoln("retry context canceled request...") return util.WithCachedGrpcClient(context.Background(), func(ctx2 context.Context, grpcConnection *grpc.ClientConn) error { client := filer_pb.NewSeaweedFilerClient(grpcConnection) return fn(ctx2, client) diff --git a/weed/pb/filer_pb/filer_pb_helper.go b/weed/pb/filer_pb/filer_pb_helper.go index 0f370ffc4..349f07320 100644 --- a/weed/pb/filer_pb/filer_pb_helper.go +++ b/weed/pb/filer_pb/filer_pb_helper.go @@ -77,7 +77,7 @@ func CreateEntry(ctx context.Context, client SeaweedFilerClient, request *Create return fmt.Errorf("CreateEntry: %v", err) } if resp.Error != "" { - return fmt.Errorf("CreateEntry: %v", resp.Error) + return fmt.Errorf("CreateEntry : %v", resp.Error) } return err }