Replace usage of deprecated Spring Framework methods

See gh-28642
This commit is contained in:
Scott Frederick
2021-12-06 16:12:34 -06:00
parent 16f54d2c5c
commit 33953823fc
4 changed files with 16 additions and 4 deletions

View File

@@ -306,7 +306,10 @@ public class LoggingApplicationListener implements GenericApplicationListener {
}
private void initializeSystem(ConfigurableEnvironment environment, LoggingSystem system, LogFile logFile) {
String logConfig = StringUtils.trimWhitespace(environment.getProperty(CONFIG_PROPERTY));
String logConfig = environment.getProperty(CONFIG_PROPERTY);
if (StringUtils.hasLength(logConfig)) {
logConfig = logConfig.strip();
}
try {
LoggingInitializationContext initializationContext = new LoggingInitializationContext(environment);
if (ignoreLogConfig(logConfig)) {