Explorar o código

log输出错误详情

qinchao %!s(int64=3) %!d(string=hai) anos
pai
achega
885e9e6180

+ 1 - 1
examcloud-web/src/main/java/cn/com/qmth/examcloud/web/security/SecurityProperty.java

@@ -39,7 +39,7 @@ public class SecurityProperty {
                 log.info("Security loadProperties size is {}", PROPS.size());
             }
         } catch (Exception e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage(), e);
             throw new RuntimeException(e);
         } finally {
             try {

+ 1 - 1
examcloud-web/src/main/java/cn/com/qmth/examcloud/web/support/ControllerAspect.java

@@ -88,7 +88,7 @@ public class ControllerAspect {
                 return joinPoint.proceed();
             }
         } catch (Throwable e) {
-            LOG.error(e.getMessage());
+            LOG.error(e.getMessage(), e);
             throw new RuntimeException(e);
         }