소스 검색

日志更新

wangliang 3 년 전
부모
커밋
e67dba5e02
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      themis-exam/src/main/java/com/qmth/themis/exam/aspect/ApiControllerAspect.java

+ 2 - 1
themis-exam/src/main/java/com/qmth/themis/exam/aspect/ApiControllerAspect.java

@@ -1,5 +1,6 @@
 package com.qmth.themis.exam.aspect;
 
+import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.util.JacksonUtil;
 import com.qmth.themis.business.util.ServletUtil;
 import com.qmth.themis.common.exception.BusinessException;
@@ -73,7 +74,7 @@ public class ApiControllerAspect {
             }
             return joinPoint.proceed();
         } catch (Exception e) {
-            log.error("Api exception", e);
+            log.error(SystemConstant.LOG_ERROR, e);
             if (e instanceof BusinessException) {
                 return ResultUtil.error((BusinessException) e, e.getMessage());
             } else {