diff --git a/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java b/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java index aaddf4ce..9e0bbd27 100644 --- a/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java +++ b/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java @@ -107,8 +107,8 @@ public class LogUtils { log.preInsert(); // 获取异常对象 - Throwable throwable = null; - if (ex != null){ + Throwable throwable = ex; + if (throwable == null){ throwable = ExceptionUtils.getThrowable(request); } diff --git a/modules/core/src/main/resources/views/modules/sys/logForm.html b/modules/core/src/main/resources/views/modules/sys/logForm.html index 165b4793..e8faf7e0 100644 --- a/modules/core/src/main/resources/views/modules/sys/logForm.html +++ b/modules/core/src/main/resources/views/modules/sys/logForm.html @@ -78,19 +78,6 @@ - <% if(@Global.YES.equals(log.isException)){ %> -
-
-
- -
- <#form:textarea path="exceptionInfo" rows="10" class="form-control "/> -
-
-
-
- <% } %>
@@ -173,6 +160,12 @@
+ <% if(@Global.YES.equals(log.isException)){ %> +
${text('异常信息')}
+
+ <#form:textarea path="exceptionInfo" rows="20" class="form-control autoHeight"/> +
+ <% } %>