diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpoint.java index dcb00036c9..af991d0f55 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpoint.java @@ -72,7 +72,8 @@ public class LoggersMvcEndpoint extends EndpointMvcAdapter { return getDisabledResponse(); } String level = configuration.get("configuredLevel"); - this.delegate.setLogLevel(name, level == null ? null : LogLevel.valueOf(level.toUpperCase())); + LogLevel logLevel = level == null ? null : LogLevel.valueOf(level.toUpperCase()); + this.delegate.setLogLevel(name, logLevel); return HttpEntity.EMPTY; } diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpointTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpointTests.java index 7f80cc675c..63eea415be 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpointTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LoggersMvcEndpointTests.java @@ -1,6 +1,5 @@ /* * Copyright 2012-2017 the original author or authors. - * Copyright 2016-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,7 +62,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. * * @author Ben Hale * @author Phillip Webb - * @author Kazuki Shimizu */ @RunWith(SpringRunner.class) @SpringBootTest