adjust logging

This commit is contained in:
Chris Lu 2020-02-25 17:24:08 -08:00
parent 0841bedb15
commit bd3254b53f
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ func (wfs *WFS) WithFilerClient(ctx context.Context, fn func(context.Context, fi
return nil return nil
} }
if strings.Contains(err.Error(), "context canceled") { 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 { return util.WithCachedGrpcClient(context.Background(), func(ctx2 context.Context, grpcConnection *grpc.ClientConn) error {
client := filer_pb.NewSeaweedFilerClient(grpcConnection) client := filer_pb.NewSeaweedFilerClient(grpcConnection)
return fn(ctx2, client) return fn(ctx2, client)

View file

@ -77,7 +77,7 @@ func CreateEntry(ctx context.Context, client SeaweedFilerClient, request *Create
return fmt.Errorf("CreateEntry: %v", err) return fmt.Errorf("CreateEntry: %v", err)
} }
if resp.Error != "" { if resp.Error != "" {
return fmt.Errorf("CreateEntry: %v", resp.Error) return fmt.Errorf("CreateEntry : %v", resp.Error)
} }
return err return err
} }