Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Use messageId provided by wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Juozas Skarbalius committed Sep 3, 2024
1 parent 1c77482 commit 2d35de8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ public void run() {
} catch (AwsServiceException e) {
errorHandlingStrategy.handleExtendVisibilityTimeoutException(e, messageWrapper);
} catch (Exception e) {
log.error("error while extending message visibility for " + messageWrapper.getMessage().getHeaders().get("MessageId",
String.class), e);
log.error("error while extending message visibility for {}", messageWrapper.getMessageId(), e);
throw new RuntimeException(e);
}
}
Expand Down

0 comments on commit 2d35de8

Please sign in to comment.