Skip to content

Commit

Permalink
[fix][client] Logger.warn usage bug fix: the number is inconsistent f…
Browse files Browse the repository at this point in the history
…or format and arguments (#19562)

Co-authored-by: lushiji <[email protected]>
  • Loading branch information
StevenLuMT and lushiji authored Feb 20, 2023
1 parent 3855585 commit e0b50c9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2028,10 +2028,12 @@ private CompletableFuture<Boolean> processPossibleToDLQ(MessageIdImpl messageId)
}).exceptionally(ex -> {
if (ex instanceof PulsarClientException.ProducerQueueIsFullError) {
log.warn("[{}] [{}] [{}] Failed to send DLQ message to {} for message id {}: {}",
topicName, subscription, consumerName, finalMessageId, ex.getMessage());
topicName, subscription, consumerName,
deadLetterPolicy.getDeadLetterTopic(), finalMessageId, ex.getMessage());
} else {
log.warn("[{}] [{}] [{}] Failed to send DLQ message to {} for message id {}",
topicName, subscription, consumerName, finalMessageId, ex);
topicName, subscription, consumerName,
deadLetterPolicy.getDeadLetterTopic(), finalMessageId, ex);
}
result.complete(false);
return null;
Expand Down

0 comments on commit e0b50c9

Please sign in to comment.