Browse Source

adjust logging

pull/1213/head
Chris Lu 5 years ago
parent
commit
bd3254b53f
  1. 2
      weed/filesys/wfs.go
  2. 2
      weed/pb/filer_pb/filer_pb_helper.go

2
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)

2
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
}
Loading…
Cancel
Save