Make default ExceptionHandler logging message more informative #887
Labels
1 - triaged
Tickets that are safe to pick up for contributing in terms of likeliness of being accepted
help wanted
Identifies issues that the core team will likely not have time to work on
t:routing
Issues related to the routing DSL
Milestone
I've seen people wondering about the messages logged from the default
ExceptionHandler
more than once, especially when exception's message is null (we get something like this:Error during processing of request: 'null'. Completing with InternalServerError response
which is not very helpful.)
Since there's no stack trace logging, I assume it's due to performance considerations and don't suggest simply adding an exception object as a
log.error
argument, but rathera) printing a class name for exceptions with
e.getMessage == null
b) log message with a link to the 'Exception Handling' section of the docs and a short error description.
I've tried to do this in a local branch, so if you think this is worth a PR or further discussion, here's the change I propose.
The text was updated successfully, but these errors were encountered: