refactor: 记录错误日志信息

This commit is contained in:
shiziyuan9527 2022-01-11 16:12:10 +08:00 committed by 刘瑞斌
parent 23993d788e
commit e10f6ca970
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ public class SessionUtils {
assert user != null; assert user != null;
return user; return user;
} catch (Exception e) { } catch (Exception e) {
LogUtil.error(e.getMessage(), e);
return null; return null;
} }
} }
@ -74,6 +75,7 @@ public class SessionUtils {
return request.getHeader("WORKSPACE_ID"); return request.getHeader("WORKSPACE_ID");
} }
} catch (Exception e) { } catch (Exception e) {
LogUtil.error(e.getMessage(), e);
} }
return getUser().getLastWorkspaceId(); return getUser().getLastWorkspaceId();
} }
@ -85,6 +87,7 @@ public class SessionUtils {
return request.getHeader("PROJECT_ID"); return request.getHeader("PROJECT_ID");
} }
} catch (Exception e) { } catch (Exception e) {
LogUtil.error(e.getMessage(), e);
} }
return getUser().getLastProjectId(); return getUser().getLastProjectId();
} }