Quantcast
Channel: Active questions tagged consumer - Stack Overflow
Viewing all articles
Browse latest Browse all 90

Need way to remove Consume throughput received logger

$
0
0

I am using logstash-pulsar-input plugin in which i can see jar org.apache.pulsar:pulsar-client, 2.11.0 being used and while checking on that found ConsumerStatsRecorderImpl class is printing logs of Consume throughput received.

Is there any way to remove these directly other than improving / building new jar file?

if ((currentNumMsgsReceived | currentNumBytesReceived | currentNumReceiveFailed | currentNumAcksSent |        currentNumAcksFailed) != 0) {    log.info("[{}] [{}] [{}] Prefetched messages: {} --- " +"Consume throughput received: {} msgs/s --- {} Mbit/s --- " +"Ack sent rate: {} ack/s --- " +"Failed messages: {} --- batch messages: {} ---" +"Failed acks: {}",        consumerImpl.getTopic(), consumerImpl.getSubscription(), consumerImpl.consumerName,        consumerImpl.incomingMessages.size(), THROUGHPUT_FORMAT.format(receivedMsgsRate),        THROUGHPUT_FORMAT.format(receivedBytesRate * 8 / 1024 / 1024),        THROUGHPUT_FORMAT.format(currentNumAcksSent / elapsed), currentNumReceiveFailed,        currentNumBatchReceiveFailed, currentNumAcksFailed);}

i can try removing all info logs that is one way but dont want to do that


Viewing all articles
Browse latest Browse all 90

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>