日志查询表单异常信息查看界面优化

This commit is contained in:
thinkgem
2019-11-27 13:24:57 +08:00
parent 249abd24de
commit 71abbfb9cf
2 changed files with 8 additions and 15 deletions

View File

@@ -107,8 +107,8 @@ public class LogUtils {
log.preInsert(); log.preInsert();
// 获取异常对象 // 获取异常对象
Throwable throwable = null; Throwable throwable = ex;
if (ex != null){ if (throwable == null){
throwable = ExceptionUtils.getThrowable(request); throwable = ExceptionUtils.getThrowable(request);
} }

View File

@@ -78,19 +78,6 @@
</div> </div>
</div> </div>
</div> </div>
<% if(@Global.YES.equals(log.isException)){ %>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label class="control-label col-sm-2" title="">
<span class="required hide">*</span> 异常信息:<i class="fa icon-question hide"></i></label>
<div class="col-sm-10">
<#form:textarea path="exceptionInfo" rows="10" class="form-control "/>
</div>
</div>
</div>
</div>
<% } %>
<div class="row"> <div class="row">
<div class="col-xs-6"> <div class="col-xs-6">
<div class="form-group"> <div class="form-group">
@@ -173,6 +160,12 @@
</div> </div>
</div> </div>
</div> </div>
<% if(@Global.YES.equals(log.isException)){ %>
<div class="form-unit">${text('异常信息')}</div>
<div class="ml10 mr10 mb10">
<#form:textarea path="exceptionInfo" rows="20" class="form-control autoHeight"/>
</div>
<% } %>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<div class="row"> <div class="row">