Skip to content

Commit

Permalink
Merge pull request #39403 from timgrohmann
Browse files Browse the repository at this point in the history
* pr/39403:
  Allow creation of SpringProfileArbiter without Environment

Closes gh-39403
  • Loading branch information
mhalbritter committed Feb 28, 2024
2 parents 468c7e5 + bd6edea commit 29e37a5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ Builder setName(String name) {
public SpringProfileArbiter build() {
Environment environment = Log4J2LoggingSystem.getEnvironment(this.loggerContext);
if (environment == null) {
statusLogger.warn("Cannot create Arbiter, no Spring Environment available");
return null;
statusLogger.debug("Creating Arbiter without a Spring Environment");
}
String name = this.configuration.getStrSubstitutor().replace(this.name);
String[] profiles = StringUtils.trimArrayElements(StringUtils.commaDelimitedListToStringArray(name));
Expand Down

0 comments on commit 29e37a5

Please sign in to comment.