Skip to content

Commit

Permalink
Fix time unit error in errMsg when producer send fails. (#14299)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason918 committed Feb 15, 2022
1 parent 45ebe88 commit 5bcdb5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,8 @@ void sendComplete(final Exception e) {
long sequenceId = te.getSequenceId();
long ns = System.nanoTime();
String errMsg = String.format(
"%s : createdAt %s ns ago, firstSentAt %s ns ago, lastSentAt %s ns ago, retryCount %s",
"%s : createdAt %s seconds ago, firstSentAt %s seconds ago, lastSentAt %s seconds ago, "
+ "retryCount %s",
te.getMessage(),
RelativeTimeUtil.nsToSeconds(ns - this.createdAt),
RelativeTimeUtil.nsToSeconds(this.firstSentAt <= 0
Expand Down

0 comments on commit 5bcdb5e

Please sign in to comment.