Trim whitespace when coercing to a LogLevel
See gh-15143
This commit is contained in:
committed by
Andy Wilkinson
parent
d6571c0157
commit
dfe94a0abb
@@ -364,7 +364,7 @@ public class LoggingApplicationListener implements GenericApplicationListener {
|
||||
private void setLogLevel(LoggingSystem system, String name, String level) {
|
||||
try {
|
||||
name = name.equalsIgnoreCase(LoggingSystem.ROOT_LOGGER_NAME) ? null : name;
|
||||
system.setLogLevel(name, coerceLogLevel(level));
|
||||
system.setLogLevel(name, coerceLogLevel(level.trim()));
|
||||
}
|
||||
catch (RuntimeException ex) {
|
||||
this.logger.error("Cannot set level: " + level + " for '" + name + "'");
|
||||
|
||||
Reference in New Issue
Block a user