Преглед на файлове

修改异常日志打印

mengshibin преди 4 години
родител
ревизия
e2c5219302
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      4dkankan-common/src/main/java/com/fdkankan/common/exception/GlobalExceptionHandler.java

+ 1 - 1
4dkankan-common/src/main/java/com/fdkankan/common/exception/GlobalExceptionHandler.java

@@ -82,7 +82,7 @@ public class GlobalExceptionHandler {
     @ExceptionHandler(BaseRuntimeException.class)
     @ResponseStatus(HttpStatus.OK)
     public Result runtimeExceptionHandler(HttpServletRequest request, BaseRuntimeException e) {
-        log.error("uri:{},exception:{}",request.getRequestURI(),e);
+        log.error("uri:{},stack trace:",request.getRequestURI(),e);
         return Result.failure(e.getCode() == null ? Result.CODE_FAILURE : e.getCode(), e.getMsg());
     }