mirror of https://gitee.com/xiaonuobase/snowy
【优化】优化异常打印,不使用e.printStackTrace方式
parent
8f2fa66647
commit
2e87918730
|
@ -53,10 +53,11 @@ public class GlobalErrorViewController {
|
||||||
} else {
|
} else {
|
||||||
commonResult = CommonResult.error();
|
commonResult = CommonResult.error();
|
||||||
}
|
}
|
||||||
|
if(model instanceof Exception){
|
||||||
Exception exception = (Exception) model;
|
Exception exception = (Exception) model;
|
||||||
log.error(">>> 服务器未知异常:", exception);
|
log.error(">>> 服务器未知异常:", exception);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return commonResult;
|
return commonResult;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue