Skip to content

Commit 0b116a1

Browse files
committed
Increase the level of JUL logging calls in the tests to try to fix CI
The CI build is failing, but, for some reason, the same tests are working fine on developer machines. This commit increases the level at which the logging calls are being made to severe in the hope that some CI-specific configuration is filtering out the calls when they're at info level.
1 parent 6c66ff7 commit 0b116a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot/src/test/java/org/springframework/boot/logging/log4j/Log4JLoggingSystemTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void loggingThatUsesJulIsCaptured() {
9595
this.loggingSystem.initialize();
9696
java.util.logging.Logger julLogger = java.util.logging.Logger
9797
.getLogger(getClass().getName());
98-
julLogger.info("Hello world");
98+
julLogger.severe("Hello world");
9999
String output = this.output.toString().trim();
100100
assertTrue("Wrong output:\n" + output, output.contains("Hello world"));
101101
}

spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void loggingThatUsesJulIsCaptured() {
9696
this.loggingSystem.initialize();
9797
java.util.logging.Logger julLogger = java.util.logging.Logger
9898
.getLogger(getClass().getName());
99-
julLogger.info("Hello world");
99+
julLogger.severe("Hello world");
100100
String output = this.output.toString().trim();
101101
assertTrue("Wrong output:\n" + output, output.contains("Hello world"));
102102
}

0 commit comments

Comments
 (0)