Commit 19eb4caf by dingsongjie

完善错误消息

parent 6e9e80bc
...@@ -43,7 +43,7 @@ namespace Pole.Sagas.Client ...@@ -43,7 +43,7 @@ namespace Pole.Sagas.Client
} }
catch (Exception ex) catch (Exception ex)
{ {
logger.LogError(ex, "Errors in GRPC"); logger.LogError(ex, "Errors in GRPC GetSagas");
} }
finally finally
{ {
...@@ -56,7 +56,6 @@ namespace Pole.Sagas.Client ...@@ -56,7 +56,6 @@ namespace Pole.Sagas.Client
{ {
using (var stream = sagaClient.GetSagas(new Pole.Sagas.Server.Grpc.GetSagasRequest { Limit = options.PreSagasGrpcStreamingResponseLimitCount, ServiceName = options.ServiceName })) using (var stream = sagaClient.GetSagas(new Pole.Sagas.Server.Grpc.GetSagasRequest { Limit = options.PreSagasGrpcStreamingResponseLimitCount, ServiceName = options.ServiceName }))
{ {
while (await stream.ResponseStream.MoveNext(cancellationToken)) while (await stream.ResponseStream.MoveNext(cancellationToken))
{ {
if (stream.ResponseStream.Current.IsSuccess) if (stream.ResponseStream.Current.IsSuccess)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment