Include argument name in MethodArgumentTypeMismatchException
error message
#33573
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Using the latest release (
6.1.13
), whenMethodArgumentTypeMismatchException
happens, something like this is logged at warn level:It would be very useful to also log the name of the argument which caused the error, because sometimes there are multiple handler method arguments of the same type that are subject to the same conversion. I guess this means that error message should be put together in
MethodArgumentTypeMismatchException
rather than relying onTypeMismatchException
(which does not have the necessary context).The text was updated successfully, but these errors were encountered: