Skip to content

Commit

Permalink
DATAGO-75198 pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rudraneel-chakraborty committed Jun 27, 2024
1 parent 91b9cd6 commit 2ba49c3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ public void onMessage(InboundMessage inboundMessage) {
} catch (Exception e) {
if (processor != null && message != null) {
log.error("Error while processing inbound message from queue for mopMessageSubclass: {}", mopMessageSubclass);
processor.onFailure(e, processor.castToMessageClass(message));
try {
processor.onFailure(e, processor.castToMessageClass(message));
} catch (Exception e1) {
log.error("error while handling message processing failure for mopMessageSubclass: {}", mopMessageSubclass, e);
}

} else {
log.error("Unsupported message and/or processor encountered. Skipping processing", e);
}
Expand Down

0 comments on commit 2ba49c3

Please sign in to comment.