Skip to content

Commit 5079fe6

Browse files
vikinghawkacogoluegnes
authored andcommitted
was logging the wrong exception
(cherry picked from commit b88f7f5)
1 parent a0ccd99 commit 5079fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rabbitmq/client/impl/recovery/DefaultRetryHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected <T extends RecordedEntity> RetryResult doRetry(RetryCondition<T> condi
100100
Exception exception = context.exception();
101101
while (attempts < retryAttempts) {
102102
if (condition.test(entity, exception)) {
103-
log(entity, context.exception(), attempts);
103+
log(entity, exception, attempts);
104104
backoffPolicy.backoff(attempts + 1);
105105
try {
106106
Object result = operation.call(context);

0 commit comments

Comments
 (0)