diff --git a/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java b/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java index bd2e4a56b5..3b6b69b10a 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java @@ -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(); }