From 684b65e80c8c1216d4890e350cadd72768a35f18 Mon Sep 17 00:00:00 2001 From: Ralph Goers Date: Thu, 13 Aug 2020 14:39:59 -0700 Subject: [PATCH] Remove ResourceUtils.getURL logging config check Remove `ResourceUtils.getURL` checking from `LoggingApplicationListener` so that logging systems can implement custom location support. Prior to this commit, we checked in the listener if the specified config location could be opened as a URL. This unfortunately prevents Log4J extensions such as `log4j-spring-cloud-config-client` from implementing configurable SSL and credentials support. See gh-22946 --- .../boot/context/logging/LoggingApplicationListener.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java index de5e762c4b..05e16ef898 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java @@ -53,7 +53,6 @@ import org.springframework.core.env.Environment; import org.springframework.core.log.LogMessage; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; -import org.springframework.util.ResourceUtils; import org.springframework.util.StringUtils; /** @@ -314,7 +313,6 @@ public class LoggingApplicationListener implements GenericApplicationListener { } else { try { - ResourceUtils.getURL(logConfig).openStream().close(); system.initialize(initializationContext, logConfig, logFile); } catch (Exception ex) {