Skip to content

Commit

Permalink
Allow creation of SpringProfileArbiter without Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
timgrohmann authored and mhalbritter committed Feb 28, 2024
1 parent 468c7e5 commit bd6edea
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 bd6edea

Please sign in to comment.