@ExceptionHandler(Exception.class)
    @ResponseStatus(value = HttpStatus.OK)
    @ResponseBody
    public ActionResult handledException(HttpServletRequest request, Exception exception) {
        ActionResult result = convert(exception);
        log.error("An unknown exception occurred {}:{}, request parameters:{}", request.getRequestURI(), result,
            JSON.toJSONString(request.getParameterMap()),
            exception);
        return result;
    }
Unknown exception requires manual intervention to view logs

@param request   request
@param exception exception
@return return
chat2db-server/chat2db-server-start/src/main/java/ai/chat2db/server/start/exception/EasyControllerExceptionHandler.java