Skip to content

Commit 256cdcd

Browse files
committed
Merge branch '3.1.x' into 3.2.x
Closes gh-39786
2 parents 28e7f1d + 29e37a5 commit 256cdcd

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)