Skip to content

Commit 684b65e

Browse files
rgoersphilwebb
authored andcommitted
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
1 parent f6f832b commit 684b65e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.springframework.core.log.LogMessage;
5454
import org.springframework.util.LinkedMultiValueMap;
5555
import org.springframework.util.MultiValueMap;
56-
import org.springframework.util.ResourceUtils;
5756
import org.springframework.util.StringUtils;
5857

5958
/**
@@ -314,7 +313,6 @@ private void initializeSystem(ConfigurableEnvironment environment, LoggingSystem
314313
}
315314
else {
316315
try {
317-
ResourceUtils.getURL(logConfig).openStream().close();
318316
system.initialize(initializationContext, logConfig, logFile);
319317
}
320318
catch (Exception ex) {

0 commit comments

Comments
 (0)