From e10f6ca9709b4d7bd6264c6c2ba010542b3558e2 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 11 Jan 2022 16:12:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=B0=E5=BD=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/commons/utils/SessionUtils.java | 3 +++ 1 file changed, 3 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..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(); }