This is an automated email from the ASF dual-hosted git repository.

mjsax pushed a commit to branch 3.9
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/3.9 by this push:
     new d23107e71f2 MINOR: reduce per-batch logging to TRACE level (#19101)
d23107e71f2 is described below

commit d23107e71f2f06de97d1927f6604f526ef1a781d
Author: Matthias J. Sax <[email protected]>
AuthorDate: Thu Mar 6 11:06:26 2025 -0800

    MINOR: reduce per-batch logging to TRACE level (#19101)
    
    Logging on a per-batch bases is very chatty, and should only be done at
    TRACE level to avoid spamming DEBUG logs.
    
    Reviewers: Justine Olshan <[email protected]>, Lucas Brutschy 
<[email protected]>
---
 .../org/apache/kafka/clients/producer/internals/TransactionManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java
 
b/clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java
index 10239be6d98..37a24d43456 100644
--- 
a/clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java
+++ 
b/clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java
@@ -635,7 +635,7 @@ public class TransactionManager {
 
     public synchronized void handleCompletedBatch(ProducerBatch batch, 
ProduceResponse.PartitionResponse response) {
         int lastAckedSequence = 
maybeUpdateLastAckedSequence(batch.topicPartition, batch.lastSequence());
-        log.debug("ProducerId: {}; Set last ack'd sequence number for 
topic-partition {} to {}",
+        log.trace("ProducerId: {}; Set last ack'd sequence number for 
topic-partition {} to {}",
                 batch.producerId(),
                 batch.topicPartition,
                 lastAckedSequence);

Reply via email to