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

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

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

Loading…
Cancel
Save