Fix invalid firstSentAt value
@@ -1228,7 +1228,7 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
"%s : createdAt %s ns ago, firstSentAt %s ns ago, lastSentAt %s ns ago, retryCount %s",
te.getMessage(),
ns - this.createdAt,
- ns - this.firstSentAt,
+ this.firstSentAt <= 0 ? ns - this.lastSentAt : ns - this.firstSentAt,
ns - this.lastSentAt,
retryCount
);
