瀏覽代碼

data-service

孙永军 2 年之前
父節點
當前提交
d30c84e03a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/sxtvs/open/core/advice/APIResponseAdvice.java

+ 2 - 2
src/main/java/com/sxtvs/open/core/advice/APIResponseAdvice.java

@@ -61,8 +61,8 @@ public class APIResponseAdvice implements ResponseBodyAdvice<Object> {
     @ExceptionHandler(Throwable.class)
     @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
     public APIResponse serverError(Throwable ex) {
-//        logger.error("error", ex);
-        log.error(ex.getMessage(),ex);
+        logger.error("error", ex);
+//        log.error(ex.getMessage(),ex);
         APIResponse apiResponse = new APIResponse();
         apiResponse.setCode(-1);
         apiResponse.setMessage("服务器运行异常");