From b32788bd3d6693a7d8832e8236a7287184d249f9 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 11 Jan 2022 18:07:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=AE=B0=E5=BD=95=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=9A=84workspace=5Fid=20=E5=92=8C=20project?= =?UTF-8?q?=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit ef93c1ee92934fefd6539148f60d6b1bb5c1592b) --- .../main/java/io/metersphere/commons/utils/SessionUtils.java | 2 ++ 1 file changed, 2 insertions(+) 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..30402447ea 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/SessionUtils.java @@ -70,6 +70,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"); } @@ -81,6 +82,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"); }