Reinstate devtools debug logging with opt-out
Reinstate `web` logging when devtools is in use, making use of the new logging groups support. Devtools now also logs an `INFO` message informing that properties defaults are offers an easy way to disable them. Closes gh-14450
This commit is contained in:
@@ -783,6 +783,16 @@ 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 `web`
|
||||
logging group. 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.
|
||||
|
||||
NOTE: If you don't want property defaults to be applied you can set
|
||||
`spring.devtools.add-properties` to `false` in your `application.properties`.
|
||||
|
||||
TIP: For a complete list of the properties that are applied by the devtools, see
|
||||
{sc-spring-boot-devtools}/env/DevToolsPropertyDefaultsPostProcessor.{sc-ext}[DevToolsPropertyDefaultsPostProcessor].
|
||||
|
||||
|
||||
Reference in New Issue
Block a user