Skip to content

Commit 428e705

Browse files
committed
Merge branch '3.2.x'
Closes gh-39787
2 parents 473132d + 256cdcd commit 428e705

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

+1-2
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)