Polish contribution

Closes gh-7914
This commit is contained in:
Stephane Nicoll 2017-01-15 09:45:32 +01:00
parent a6756c9ed3
commit f21c767356
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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