diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java index 95c2e525ddbd..2ff14fcb7f1a 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java @@ -48,7 +48,9 @@ public class ControllerExceptionHandler { @ExceptionHandler(value = Exception.class) public ModelAndView defaultErrorHandler(HttpServletRequest request, Exception exception) throws Exception { - logger.warn("Error:{}", exception.getMessage(), exception); + Map requestResource = createRequestResource(request); + logger.warn("Failed to execute controller methods. message:{}, request:{}.", getExceptionMessage(exception), requestResource, exception); + ModelAndView mav = new ModelAndView(); mav.addObject("exception", createExceptionResource(request, exception)); mav.setViewName(DEFAULT_ERROR_VIEW);