commit
256cdcd51b
|
|
@ -95,8 +95,7 @@ final class SpringProfileArbiter implements Arbiter {
|
||||||
public SpringProfileArbiter build() {
|
public SpringProfileArbiter build() {
|
||||||
Environment environment = Log4J2LoggingSystem.getEnvironment(this.loggerContext);
|
Environment environment = Log4J2LoggingSystem.getEnvironment(this.loggerContext);
|
||||||
if (environment == null) {
|
if (environment == null) {
|
||||||
statusLogger.warn("Cannot create Arbiter, no Spring Environment available");
|
statusLogger.debug("Creating Arbiter without a Spring Environment");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
String name = this.configuration.getStrSubstitutor().replace(this.name);
|
String name = this.configuration.getStrSubstitutor().replace(this.name);
|
||||||
String[] profiles = StringUtils.trimArrayElements(StringUtils.commaDelimitedListToStringArray(name));
|
String[] profiles = StringUtils.trimArrayElements(StringUtils.commaDelimitedListToStringArray(name));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue