Skip to content

Commit

Permalink
was logging the wrong exception
Browse files Browse the repository at this point in the history
(cherry picked from commit b88f7f5)
  • Loading branch information
vikinghawk authored and acogoluegnes committed Aug 29, 2018
1 parent a0ccd99 commit 5079fe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected <T extends RecordedEntity> RetryResult doRetry(RetryCondition<T> condi
Exception exception = context.exception();
while (attempts < retryAttempts) {
if (condition.test(entity, exception)) {
log(entity, context.exception(), attempts);
log(entity, exception, attempts);
backoffPolicy.backoff(attempts + 1);
try {
Object result = operation.call(context);
Expand Down

0 comments on commit 5079fe6

Please sign in to comment.