From 341412d5b5a2dafeac46761d6445cca81a560690 Mon Sep 17 00:00:00 2001 From: Ilayaperumal Gopinathan Date: Mon, 14 Jul 2014 20:24:12 -0700 Subject: [PATCH] Fix LoggingApplicationListener - If `logging.config` is set and could open/read the resource then, return. - Currently, it logs warning though the resource is successfully read. --- .../boot/logging/LoggingApplicationListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {