Skip to content

Commit aa2da0b

Browse files
committed
Remove logging level changes from devtools
Update `DevToolsPropertyDefaultsPostProcessor` to remove custom logging level configuration. Unfortunately it's not easy to back-off logging overrides when the user has a custom logback/log4j configuration. Closes gh-14310
1 parent 84b6fff commit aa2da0b

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java

-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro
5959
devToolsProperties.put("server.error.include-stacktrace", "ALWAYS");
6060
devToolsProperties.put("server.servlet.jsp.init-parameters.development", "true");
6161
devToolsProperties.put("spring.reactor.stacktrace-mode.enabled", "true");
62-
devToolsProperties.put("logging.level.org.springframework.web", "DEBUG");
63-
devToolsProperties.put("logging.level.org.springframework.core.codec", "DEBUG");
64-
devToolsProperties.put("logging.level.org.springframework.http", "DEBUG");
6562
PROPERTIES = Collections.unmodifiableMap(devToolsProperties);
6663
}
6764

spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

-7
Original file line numberDiff line numberDiff line change
@@ -783,13 +783,6 @@ For example, Thymeleaf offers the `spring.thymeleaf.cache` property. Rather than
783783
to set these properties manually, the `spring-boot-devtools` module automatically applies
784784
sensible development-time configuration.
785785

786-
Because you need more information about web requests while developing Spring MVC and
787-
Spring WebFlux applications, developer tools will enable DEBUG logging for the
788-
Spring Framework web infrastructure. This will give you information about the incoming
789-
request, which handler is processing it, the response outcome, etc. If you wish to log
790-
all request details (including potentially sensitive information), you can turn on
791-
the `spring.http.log-request-details` configuration property.
792-
793786
TIP: For a complete list of the properties that are applied by the devtools, see
794787
{sc-spring-boot-devtools}/env/DevToolsPropertyDefaultsPostProcessor.{sc-ext}[DevToolsPropertyDefaultsPostProcessor].
795788

0 commit comments

Comments
 (0)