mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-15 13:01:37 +08:00
refactor: 将全局异常处理器未知异常的异常类型从 Exception 调整为 Throwable
This commit is contained in:
@@ -141,7 +141,7 @@ public class LogInterceptor implements HandlerInterceptor {
|
||||
logDO.setErrorMsg(errorMsg);
|
||||
}
|
||||
// 记录异常详情
|
||||
Exception exception = logContext.getException();
|
||||
Throwable exception = logContext.getException();
|
||||
if (null != exception) {
|
||||
logDO.setStatus(LogStatusEnum.FAILURE);
|
||||
logDO.setExceptionDetail(ExceptionUtil.stacktraceToString(exception, -1));
|
||||
|
Reference in New Issue
Block a user