Skip to content

Commit

Permalink
Merge pull request #13607 from Jille/log-method
Browse files Browse the repository at this point in the history
client: retry_interceptor.go: Log the method that failed
  • Loading branch information
ptabor authored Jan 16, 2022
2 parents 87408d6 + 3710083 commit 28b9089
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/v3/retry_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (c *Client) unaryClientInterceptor(optFuncs ...retryOption) grpc.UnaryClien
c.GetLogger().Debug(
"retrying of unary invoker",
zap.String("target", cc.Target()),
zap.String("method", method),
zap.Uint("attempt", attempt),
)
lastErr = invoker(ctx, method, req, reply, cc, grpcOpts...)
Expand All @@ -63,6 +64,7 @@ func (c *Client) unaryClientInterceptor(optFuncs ...retryOption) grpc.UnaryClien
c.GetLogger().Warn(
"retrying of unary invoker failed",
zap.String("target", cc.Target()),
zap.String("method", method),
zap.Uint("attempt", attempt),
zap.Error(lastErr),
)
Expand Down

0 comments on commit 28b9089

Please sign in to comment.