From a9a54c990f644d148036699727834f7a8d3942af Mon Sep 17 00:00:00 2001 From: Arnaud Lacurie Date: Sun, 24 May 2026 18:08:22 +0100 Subject: [PATCH] Reduce yaml-tests log verbosity by using the module-specific log4j config The global testing.gradle sets log4j2.configurationFile to the root log4j-test.properties (rootLogger.level=debug), overriding the yaml-tests module's own log4j2-test.properties which correctly sets rootLogger.level=OFF and only enables INFO for the yamltests package. --- yaml-tests/yaml-tests.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yaml-tests/yaml-tests.gradle b/yaml-tests/yaml-tests.gradle index 6c6a8d3fe6..08df2172cc 100644 --- a/yaml-tests/yaml-tests.gradle +++ b/yaml-tests/yaml-tests.gradle @@ -304,6 +304,11 @@ def copyTempLogs = tasks.register("copyTempLogs", Copy) { setIncludeEmptyDirs(false) } +tasks.withType(Test).configureEach { + // Override the global debug-level log4j config; yaml-tests has its own tuned config + systemProperty('log4j2.configurationFile', project.file('src/test/resources/log4j2-test.properties').toURI()) +} + tasks.withType(Test).configureEach { if (project.hasProperty("tests.ci") || project.hasProperty("tests.saveServerLogs")) { systemProperties['tests.saveServerLogs'] = "true"