showuon commented on code in PR #17382: URL: https://github.com/apache/kafka/pull/17382#discussion_r1814128644
########## core/src/test/scala/unit/kafka/utils/TestUtils.scala: ########## @@ -1865,4 +1866,17 @@ object TestUtils extends Logging { timedOut.set(true) } } + + /** + * Resets the logging configuration after the test. + */ + def resetLogging[T] = { + org.apache.log4j.LogManager.resetConfiguration() + val stream = this.getClass.getResourceAsStream("/log4j.properties") + try { + PropertyConfigurator.configure(stream) + } finally { + stream.close() + } Review Comment: So this PR is depends on [upgrading to Log4j2 PR](https://github.com/apache/kafka/pull/17373), right? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org