diff --git a/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java index 8f6ad83167..d7806c0649 100644 --- a/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java @@ -185,10 +185,9 @@ public class LoggingApplicationListener implements SmartApplicationListener { system.initialize(value); } catch (Exception ex) { - // Swallow exception and continue + this.logger.warn("Logging environment value '" + value + + "' cannot be opened and will be ignored"); } - this.logger.warn("Logging environment value '" + value - + "' cannot be opened and will be ignored"); } else {