From 9dd8fb5e3781da54cbdae10425ad31353402f7f8 Mon Sep 17 00:00:00 2001 From: Dileep Bapat Date: Fri, 9 Nov 2018 16:40:42 +0530 Subject: [PATCH] Update LoggingApplicationListener.java --- .../boot/context/logging/LoggingApplicationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java index cb180b2d357f..34c3cc2a8439 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java @@ -361,7 +361,7 @@ private void setLogLevel(LoggingSystem system, String[] names, String level) { 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 + "'");