【优化】优化异常打印,不使用e.printStackTrace方式

pull/103/head^2
xuyuxiang 2 years ago committed by 小诺
parent 60049933ae
commit 9f66eb52a3

@ -53,10 +53,11 @@ public class GlobalErrorViewController {
} else { } else {
commonResult = CommonResult.error(); commonResult = CommonResult.error();
} }
Exception exception = (Exception) model; if(model instanceof Exception){
log.error(">>> 服务器未知异常:", exception); Exception exception = (Exception) model;
log.error(">>> 服务器未知异常:", exception);
}
} }
return commonResult; return commonResult;
} }
} }

Loading…
Cancel
Save