From aa2da0bb0d2de4b796b0ef8deab28c8c3ebc60d5 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 11 Sep 2018 15:07:34 -0700 Subject: [PATCH] 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 --- .../env/DevToolsPropertyDefaultsPostProcessor.java | 3 --- .../src/main/asciidoc/using-spring-boot.adoc | 7 ------- 2 files changed, 10 deletions(-) diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java index b96be7c75db..d5e181b33fa 100755 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java @@ -59,9 +59,6 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro devToolsProperties.put("server.error.include-stacktrace", "ALWAYS"); devToolsProperties.put("server.servlet.jsp.init-parameters.development", "true"); devToolsProperties.put("spring.reactor.stacktrace-mode.enabled", "true"); - devToolsProperties.put("logging.level.org.springframework.web", "DEBUG"); - devToolsProperties.put("logging.level.org.springframework.core.codec", "DEBUG"); - devToolsProperties.put("logging.level.org.springframework.http", "DEBUG"); PROPERTIES = Collections.unmodifiableMap(devToolsProperties); } diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc index 1fb979c0767..42a1c3e1204 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc @@ -783,13 +783,6 @@ For example, Thymeleaf offers the `spring.thymeleaf.cache` property. Rather than to set these properties manually, the `spring-boot-devtools` module automatically applies sensible development-time configuration. -Because you need more information about web requests while developing Spring MVC and -Spring WebFlux applications, developer tools will enable DEBUG logging for the -Spring Framework web infrastructure. This will give you information about the incoming -request, which handler is processing it, the response outcome, etc. If you wish to log -all request details (including potentially sensitive information), you can turn on -the `spring.http.log-request-details` configuration property. - TIP: For a complete list of the properties that are applied by the devtools, see {sc-spring-boot-devtools}/env/DevToolsPropertyDefaultsPostProcessor.{sc-ext}[DevToolsPropertyDefaultsPostProcessor].