log.debug(
"{} - Sent message {}={}, partition={}:{}, timestamp={}, latency={}ms",
id,
- record.key(),
- record.value(),
+ key,
+ value,
metadata.partition(),
metadata.offset(),
metadata.timestamp(),
{
// HANDLE ERROR
log.error(
- "{} - ERROR for message {}={}, timestamp={}, latency={}ms: {}",
+ "{} - ERROR for message {}={}, latency={}ms: {}",
id,
- record.key(),
- record.value(),
- metadata == null ? -1 : metadata.timestamp(),
+ key,
+ value,
now - time,
e.toString()
);
log.trace(
"{} - Queued message {}={}, latency={}ms",
id,
- record.key(),
- record.value(),
+ key,
+ value,
now - time
);
}