Skip to content

Reduce yaml-tests log verbosity#4202

Draft
arnaud-lacurie wants to merge 1 commit into
FoundationDB:mainfrom
arnaud-lacurie:fix/yaml-tests-log-verbosity
Draft

Reduce yaml-tests log verbosity#4202
arnaud-lacurie wants to merge 1 commit into
FoundationDB:mainfrom
arnaud-lacurie:fix/yaml-tests-log-verbosity

Conversation

@arnaud-lacurie
Copy link
Copy Markdown
Collaborator

testing.gradle globally sets log4j2.configurationFile to the root log4j-test.properties (rootLogger.level=debug), which overrides the yaml-tests module's own log4j2-test.properties. That module config correctly sets rootLogger.level=OFF and only enables INFO for the com.apple.foundationdb.relational.yamltests package — but it was never being used.

This adds a tasks.withType(Test).configureEach block in yaml-tests.gradle to re-point log4j2.configurationFile to the module-specific config, restoring the intended quiet logging for all yaml test tasks.

…nfig

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.
@arnaud-lacurie arnaud-lacurie added the testing improvement Change that improves our testing label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing improvement Change that improves our testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant