Skip to content

Commit 29e37a5

Browse files
committed
Merge pull request #39403 from timgrohmann
* pr/39403: Allow creation of SpringProfileArbiter without Environment Closes gh-39403
2 parents 468c7e5 + bd6edea commit 29e37a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/SpringProfileArbiter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ Builder setName(String name) {
9595
public SpringProfileArbiter build() {
9696
Environment environment = Log4J2LoggingSystem.getEnvironment(this.loggerContext);
9797
if (environment == null) {
98-
statusLogger.warn("Cannot create Arbiter, no Spring Environment available");
99-
return null;
98+
statusLogger.debug("Creating Arbiter without a Spring Environment");
10099
}
101100
String name = this.configuration.getStrSubstitutor().replace(this.name);
102101
String[] profiles = StringUtils.trimArrayElements(StringUtils.commaDelimitedListToStringArray(name));

0 commit comments

Comments
 (0)