Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIAD-2671: Output dead letter message at INFO level #817

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- In the event that an inbound MHS message cannot be processed and needs to be sent to the dead letter queue, the
adaptor will now emit a log message at INFO level as opposed to DEBUG level.

## [3.0.3] - 2024-08-23

> [!NOTE]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void receive(Message message, Session session) {
message.acknowledge();
LOGGER.debug("Acknowledged MHSQueue message_id=[{}]", messageId);
} else {
LOGGER.debug("Sending message_id=[{}] to the dead letter queue", messageId);
LOGGER.info("Sending message_id=[{}] to the dead letter queue", messageId);
mhsDlqPublisher.sendToMhsDlq(message);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void receive(Message message, Session session) {
message.acknowledge();
LOGGER.debug("Acknowledged MHSQueue message_id=[{}]", messageId);
} else {
LOGGER.debug("Sending message_id=[{}] to the dead letter queue", messageId);
LOGGER.info("Sending message_id=[{}] to the dead letter queue", messageId);
mhsDlqPublisher.sendToMhsDlq(message);
}
} catch (ConversationIdNotFoundException e) {
Expand Down