Enable logging of resolved exceptions
Previously, if an exception was resolved by a `HandlerExceptionResolver` nothing the log indicated a failure to process the query. This commit adds a new property `spring.mvc.log-resolved-exception` that enables warning logs for supported `HandlerExceptionResolver` instances. When Devtools is enabled, this flag is enabled by default. Closes gh-2176
This commit is contained in:
@@ -338,6 +338,7 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.mvc.ignore-default-model-on-redirect=true # If the content of the "default" model should be ignored during redirect scenarios.
|
||||
spring.mvc.locale= # Locale to use. By default, this locale is overridden by the "Accept-Language" header.
|
||||
spring.mvc.locale-resolver=accept-header # Define how the locale should be resolved.
|
||||
spring.mvc.log-resolved-exception=false # Enable warn logging of exceptions resolved by a "HandlerExceptionResolver".
|
||||
spring.mvc.media-types.*= # Maps file extensions to media types for content negotiation.
|
||||
spring.mvc.message-codes-resolver-format= # Formatting strategy for message codes. For instance `PREFIX_ERROR_CODE`.
|
||||
spring.mvc.servlet.load-on-startup=-1 # Load on startup priority of the Spring Web Services servlet.
|
||||
|
||||
Reference in New Issue
Block a user