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 3b6b69b10a..80200a5e12 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java @@ -71,6 +71,7 @@ public class SessionUtils { public static String getCurrentWorkspaceId() { try { HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest(); + LogUtil.info("WORKSPACE_ID: {}", request.getHeader("WORKSPACE_ID")); if (request.getHeader("WORKSPACE_ID") != null) { return request.getHeader("WORKSPACE_ID"); } @@ -83,6 +84,7 @@ public class SessionUtils { public static String getCurrentProjectId() { try { HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest(); + LogUtil.info("PROJECT_ID: {}", request.getHeader("PROJECT_ID")); if (request.getHeader("PROJECT_ID") != null) { return request.getHeader("PROJECT_ID"); }