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

pull/98/head
xuyuxiang 2023-03-23 14:16:32 +08:00
parent 8f2fa66647
commit 2e87918730
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}