refactor: 记录错误日志信息
This commit is contained in:
parent
23993d788e
commit
e10f6ca970
|
@ -30,6 +30,7 @@ public class SessionUtils {
|
|||
assert user != null;
|
||||
return user;
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e.getMessage(), e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -74,6 +75,7 @@ public class SessionUtils {
|
|||
return request.getHeader("WORKSPACE_ID");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e.getMessage(), e);
|
||||
}
|
||||
return getUser().getLastWorkspaceId();
|
||||
}
|
||||
|
@ -85,6 +87,7 @@ public class SessionUtils {
|
|||
return request.getHeader("PROJECT_ID");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e.getMessage(), e);
|
||||
}
|
||||
return getUser().getLastProjectId();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue