From 6bc498cb3ab785a8671a155587988028d8021280 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Thu, 6 Jul 2017 15:52:32 -0700 Subject: [PATCH] Polish --- .../boot/context/logging/LoggingApplicationListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java index 1f52d7282b..e6b73c4879 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java @@ -304,10 +304,10 @@ public class LoggingApplicationListener implements GenericApplicationListener { } Binder binder = Binder.get(environment); binder.bind("logging.level", STRING_STRING_MAP).orElseGet(Collections::emptyMap) - .forEach((name, level) -> setLogLevel(system, environment, name, level)); + .forEach((name, level) -> setLogLevel(system, name, level)); } - private void setLogLevel(LoggingSystem system, Environment environment, String name, + private void setLogLevel(LoggingSystem system, String name, String level) { try { name = (name.equalsIgnoreCase(LoggingSystem.ROOT_LOGGER_NAME) ? null : name);