mirror of https://gitee.com/xiaonuobase/snowy
【优化】优化异常打印,不使用e.printStackTrace方式
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…
Reference in New Issue