Skip to content

Commit

Permalink
[ISSUE #608] Print message id and message queue when consume result i…
Browse files Browse the repository at this point in the history
…s failure
  • Loading branch information
drpmma committed Sep 22, 2023
1 parent 20c5fba commit c3972bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public ConsumeResult call() {
try {
consumeResult = messageListener.consume(messageView);
} catch (Throwable t) {
log.error("Message listener raised an exception while consuming messages, clientId={}", clientId, t);
log.error("Message listener raised an exception while consuming messages, clientId={}, mq={}, " +
"messageId={}", clientId, messageView.getMessageQueue(), messageView.getMessageId(), t);
// If exception was thrown during the period of message consumption, mark it as failure.
consumeResult = ConsumeResult.FAILURE;
}
Expand Down

0 comments on commit c3972bb

Please sign in to comment.