Skip to content

Commit

Permalink
was logging the wrong exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vikinghawk committed Aug 28, 2018
1 parent 9b5adbe commit b88f7f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected RetryResult doRetry(BiPredicate<RecordedEntity, Exception> condition,
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 b88f7f5

Please sign in to comment.