From 5526f94bf3f4d01a1b0380e1bfdda00113bbc4ac Mon Sep 17 00:00:00 2001 From: Shivam Verma Date: Wed, 24 Aug 2022 02:54:27 -0600 Subject: [PATCH] Removed request_id field in sessions.py Signed-off-by: Shivam Verma --- csm/core/services/sessions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/csm/core/services/sessions.py b/csm/core/services/sessions.py index d8d640365..0fdf60d09 100644 --- a/csm/core/services/sessions.py +++ b/csm/core/services/sessions.py @@ -345,11 +345,11 @@ async def login(self, user_id, password): session = await self._is_valid_session_exists(user_id) if not session: # if No valid session exists, then create new session - Log.info(f"[{self.request.request_id}] Session expired, creating new session for user: {user_id}") + Log.info(f"Session expired, creating new session for user: {user_id}") permissions = await self._role_manager.calc_effective_permissions(user.user_role) session = await self._session_manager.create(credentials, permissions) if not session: - Log.error(f"[{self.request.request_id}] Failed to create a new session for user: {user_id}") + Log.error(f"Failed to create a new session for user: {user_id}") return None, None return session.session_id, {"reset_password": user.reset_password} @@ -432,4 +432,4 @@ async def _is_valid_session_exists(self, user_id: str) -> None: await self.update_session_expiry_time(each_session) # return valid session return each_session - return None + return None \ No newline at end of file