You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by jg...@apache.org on 2022/05/30 16:21:49 UTC

[kafka] branch trunk updated: MINOR: Send kraft raft/controller logs to controller log in systests (#12222)

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

jgus 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 f980820e2b MINOR: Send kraft raft/controller logs to controller log in systests (#12222)
f980820e2b is described below

commit f980820e2b71dfa061c9d662b247caa5ea9c530f
Author: Jason Gustafson <ja...@confluent.io>
AuthorDate: Mon May 30 09:21:41 2022 -0700

    MINOR: Send kraft raft/controller logs to controller log in systests (#12222)
    
    Currently the only place we see controller/raft logging in system tests is `server-start-stdout-stderr.log` where they are mixed with all other logs. It is more convenient to send them to `controller.log` as we do for zk tests.
    
    Reviewers: Kvicii <42...@users.noreply.github.com>, David Jacot <dj...@confluent.io>
---
 tests/kafkatest/services/kafka/templates/log4j.properties | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kafkatest/services/kafka/templates/log4j.properties b/tests/kafkatest/services/kafka/templates/log4j.properties
index 5963c39c08..5897658da4 100644
--- a/tests/kafkatest/services/kafka/templates/log4j.properties
+++ b/tests/kafkatest/services/kafka/templates/log4j.properties
@@ -121,6 +121,8 @@ log4j.additivity.kafka.server.KafkaApis=false
 log4j.logger.kafka.request.logger={{ log_level|default("DEBUG") }}, requestInfoAppender, requestDebugAppender
 log4j.additivity.kafka.request.logger=false
 
+log4j.logger.org.apache.kafka.raft={{ log_level|default("DEBUG") }}, controllerInfoAppender, controllerDebugAppender
+log4j.logger.org.apache.kafka.controller={{ log_level|default("DEBUG") }}, controllerInfoAppender, controllerDebugAppender
 log4j.logger.kafka.controller={{ log_level|default("DEBUG") }}, controllerInfoAppender, controllerDebugAppender
 log4j.additivity.kafka.controller=false