mirror of https://github.com/apache/kafka.git
MINOR: Fix warn logging in RecordCollectorImpl
Fix warn log message in RecordCollectorImpl so it prints the exception message rather than `{}` Author: Damian Guy <damian.guy@gmail.com> Reviewers: Matthias J. Sax <matthias@confluent.io>, Bill Bejeck <bill@confluent.io>, GuozhangWang <wangguoz@gmail.com> Closes #4318 from dguy/minor-logging-record-collector
This commit is contained in:
parent
b088822134
commit
fe3699ce33
|
@ -107,7 +107,7 @@ public class RecordCollectorImpl implements RecordCollector {
|
|||
} else {
|
||||
if (sendException == null) {
|
||||
if (exception instanceof ProducerFencedException) {
|
||||
log.warn(LOG_MESSAGE, key, value, timestamp, topic, exception);
|
||||
log.warn(LOG_MESSAGE, key, value, timestamp, topic, exception.getMessage());
|
||||
sendException = new ProducerFencedException(
|
||||
String.format(EXCEPTION_MESSAGE,
|
||||
logPrefix,
|
||||
|
|
Loading…
Reference in New Issue