Skip to content

Commit 99669c2

Browse files
authored
Log exceptions processing messages as occur (#1011)
This should help make debugging issues easier when investigating issues processing messages and provide more precise time of exception in logs.
1 parent 27aaab1 commit 99669c2

File tree

1 file changed

+1
-0
lines changed
  • powertools-sqs/src/main/java/software/amazon/lambda/powertools/sqs

1 file changed

+1
-0
lines changed

powertools-sqs/src/main/java/software/amazon/lambda/powertools/sqs/SqsUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ public static <R> List<R> batchProcessor(final SQSEvent event,
497497
batchContext.addSuccess(message);
498498
} catch (Exception e) {
499499
batchContext.addFailure(message, e);
500+
LOG.error("Encountered issue processing message: {}", message.getMessageId(), e);
500501
}
501502
}
502503

0 commit comments

Comments
 (0)