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"