Skip to content

Commit

Permalink
Log exceptions processing messages as occur (#1011)
Browse files Browse the repository at this point in the history
This should help make debugging issues easier when investigating issues processing messages and provide more precise time of exception in logs.
  • Loading branch information
nem0-97 authored Dec 14, 2022
1 parent 27aaab1 commit 99669c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ public static <R> List<R> batchProcessor(final SQSEvent event,
batchContext.addSuccess(message);
} catch (Exception e) {
batchContext.addFailure(message, e);
LOG.error("Encountered issue processing message: {}", message.getMessageId(), e);
}
}

Expand Down

0 comments on commit 99669c2

Please sign in to comment.