From 0b116a1a5ac6a369ab9622dce95c969ee591b809 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 28 Oct 2014 15:54:17 +0000 Subject: [PATCH] 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. --- .../boot/logging/log4j/Log4JLoggingSystemTests.java | 2 +- .../boot/logging/log4j2/Log4J2LoggingSystemTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/logging/log4j/Log4JLoggingSystemTests.java b/spring-boot/src/test/java/org/springframework/boot/logging/log4j/Log4JLoggingSystemTests.java index 3fca3a4d675..1de85dffc0e 100644 --- a/spring-boot/src/test/java/org/springframework/boot/logging/log4j/Log4JLoggingSystemTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/logging/log4j/Log4JLoggingSystemTests.java @@ -95,7 +95,7 @@ public class Log4JLoggingSystemTests { this.loggingSystem.initialize(); java.util.logging.Logger julLogger = java.util.logging.Logger .getLogger(getClass().getName()); - julLogger.info("Hello world"); + julLogger.severe("Hello world"); String output = this.output.toString().trim(); assertTrue("Wrong output:\n" + output, output.contains("Hello world")); } diff --git a/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java b/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java index 9d75c508106..20c54d276ad 100644 --- a/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java @@ -96,7 +96,7 @@ public class Log4J2LoggingSystemTests { this.loggingSystem.initialize(); java.util.logging.Logger julLogger = java.util.logging.Logger .getLogger(getClass().getName()); - julLogger.info("Hello world"); + julLogger.severe("Hello world"); String output = this.output.toString().trim(); assertTrue("Wrong output:\n" + output, output.contains("Hello world")); }