You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ab...@apache.org on 2022/06/08 09:03:01 UTC

[kafka] branch trunk updated: MINOR: adjust logging levels in Stream tests (#12255)

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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new 1e2611aed4 MINOR: adjust logging levels in Stream tests (#12255)
1e2611aed4 is described below

commit 1e2611aed4bd86ddba1631d9b2c3c5d4661b33d0
Author: A. Sophie Blee-Goldman <so...@confluent.io>
AuthorDate: Wed Jun 8 02:02:40 2022 -0700

    MINOR: adjust logging levels in Stream tests (#12255)
    
    Now that we've turned off logging in the brokers/zookeeper/config classes we can finally see at least some of the logs where Streams is actually doing something when trying to debug tests from a failed PR build. But I've noticed we still have some flooding of warnings from the NetworkClient and info-level junk from Metadata, so to maximize the visible useful logs we should filter out everything bu the producer/consumer client themselves (in addition to Streams) fine-grained logging
    
    Reviewers: Luke Chen <sh...@gmail.com>, Kvicii Y
---
 streams/src/test/resources/log4j.properties | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/streams/src/test/resources/log4j.properties b/streams/src/test/resources/log4j.properties
index 050cd679f0..b7e1fb2d60 100644
--- a/streams/src/test/resources/log4j.properties
+++ b/streams/src/test/resources/log4j.properties
@@ -22,6 +22,12 @@ log4j.logger.kafka=ERROR
 log4j.logger.state.change.logger=ERROR
 log4j.logger.org.apache.kafka=ERROR
 log4j.logger.org.apache.zookeeper=ERROR
+log4j.logger.org.apache.kafka.clients=ERROR
+
+# These are the only logs we will likely ever find anything useful in to debug Streams test failures
+log4j.logger.org.apache.kafka.clients.consumer=INFO
+log4j.logger.org.apache.kafka.clients.producer=INFO
+log4j.logger.org.apache.kafka.streams=INFO
 
 # printing out the configs takes up a huge amount of the allotted characters,
 # and provides little value as we can always figure out the test configs without the logs
@@ -29,7 +35,3 @@ log4j.logger.org.apache.kafka.clients.producer.ProducerConfig=ERROR
 log4j.logger.org.apache.kafka.clients.consumer.ConsumerConfig=ERROR
 log4j.logger.org.apache.kafka.clients.admin.AdminClientConfig=ERROR
 log4j.logger.org.apache.kafka.streams.StreamsConfig=ERROR
-
-# These are the only logs we will likely ever find anything useful in to debug Streams test failures
-log4j.logger.org.apache.kafka.clients=INFO
-log4j.logger.org.apache.kafka.streams=INFO