Skip to content

Commit 0dae9e5

Browse files
refs #97: Fix invalid cherry pick
1 parent 428f033 commit 0dae9e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java-dynamic-sqs-listener-core/src/main/java/com/jashmore/sqs/retriever/batching/BatchingMessageRetriever.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ public void run() {
143143
break;
144144
}
145145
} catch (final ExecutionException | RuntimeException exception) {
146-
log.error("Error thrown trying to obtain messages", exception);
147146
try {
148147
final long errorBackoffTimeInMilliseconds = getErrorBackoffTimeInMilliseconds();
149-
log.error("Error thrown while organising threads to process messages. Backing off for {}ms", errorBackoffTimeInMilliseconds, throwable);
148+
log.error("Error thrown while organising threads to process messages. Backing off for {}ms", errorBackoffTimeInMilliseconds, exception);
150149
backoff(errorBackoffTimeInMilliseconds);
151150
} catch (final InterruptedException interruptedException) {
152151
log.debug("Thread interrupted during backoff period");

0 commit comments

Comments
 (0)