RFR: 7904078: Mute JUnit logging to warning level

Jaikiran Pai jpai at openjdk.org
Tue Sep 9 09:48:51 UTC 2025


On Tue, 9 Sep 2025 07:27:47 GMT, Christian Stein <cstein at openjdk.org> wrote:

> Please review this small change to configure JUnit's built-in logging severity to warning level.

Marked as reviewed by jpai (Reviewer).

src/share/classes/com/sun/javatest/regtest/agent/JUnitRunner.java line 138:

> 136: 
> 137:             AgentVerbose verbose = AgentVerbose.ofStringRepresentation(System.getProperty("test.verbose"));
> 138:             Logger.getLogger("org.junit").setLevel(Level.WARNING);

Looks OK to me. I don't think we use/rely on org.junit logs in any parts of jtreg test execution or its reports. So I think it's OK to set this level to warning to prevent the noisy:


INFO: Skipping cleanup of temp dir JTwork/scratch/junit-7718269284146213374 for parameter 'arg0' in method fooBar(Path) due to CleanupMode.NEVER.

-------------

PR Review: https://git.openjdk.org/jtreg/pull/289#pullrequestreview-3200516156
PR Review Comment: https://git.openjdk.org/jtreg/pull/289#discussion_r2332801318


More information about the jtreg-dev mailing list