Skip to content

Commit

Permalink
Fix consumer stats log error. (apache#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
codelipenghui authored and merlimat committed Jan 8, 2019
1 parent ccfa389 commit ad72b7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ private void init(ConsumerConfigurationData<?> conf) {
if ((currentNumMsgsReceived | currentNumBytesReceived | currentNumReceiveFailed | currentNumAcksSent
| currentNumAcksFailed) != 0) {
log.info(
"[{}] [{}] [{}] Prefetched messages: {} --- Consume throughput: {} msgs/s --- "
+ "Throughput received: {} msg/s --- {} Mbit/s --- "
"[{}] [{}] [{}] Prefetched messages: {} --- "
+ "Consume throughput received: {} msgs/s --- {} Mbit/s --- "
+ "Ack sent rate: {} ack/s --- " + "Failed messages: {} --- " + "Failed acks: {}",
consumer.getTopic(), consumer.getSubscription(), consumer.consumerName,
consumer.incomingMessages.size(), THROUGHPUT_FORMAT.format(receivedMsgsRate),
Expand Down

0 comments on commit ad72b7e

Please sign in to comment.