Skip to content

DEMRUM-2357: Fix sessionId in closeSession log #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: feature/next-gen
Choose a base branch
from

Conversation

froseio
Copy link
Contributor

@froseio froseio commented Jun 27, 2025

When the closeSession() method was called, self.currentSession.id was logged inside a closure. However, the closure is asynchronous, and before it was executed, the currentSession = createSession() method was called, which created a new session and thus a new session ID. When the closure was finally executed, it used the new session ID. This has been fixed by storing the session ID in a variable before the log, and the log now uses only the stored session ID.

@froseio froseio requested a review from jCharv June 27, 2025 13:43
@froseio froseio requested review from a team as code owners June 27, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants