Skip to content

Capture user email per log line to prevent dissociation#893

Merged
amyevans merged 5 commits intomainfrom
Rory-LogCaptureEmail
Feb 4, 2026
Merged

Capture user email per log line to prevent dissociation#893
amyevans merged 5 commits intomainfrom
Rory-LogCaptureEmail

Conversation

@roryabraham
Copy link
Contributor

Fixes logger to capture user email at the moment each log line is created, preventing email dissociation when Onyx.clear is called before logs are sent.

Fixed Issues

$ Expensify/App#81259

Tests

Unit tests added in dependent App PR verify that logs retain user email even when session is cleared between log creation and upload.

QA

No QA needed - this is a library change with automated test coverage.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham roryabraham marked this pull request as ready for review February 3, 2026 07:01
@roryabraham roryabraham requested a review from a team as a code owner February 3, 2026 07:01
@melvin-bot melvin-bot bot requested review from amyevans and removed request for a team February 3, 2026 07:01
amyevans
amyevans previously approved these changes Feb 3, 2026
Copy link
Contributor

@amyevans amyevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few thoughts but not blocking since I know there's urgency here!

Also, I wonder if getting the email for every log line now might negatively affect performance. Something to keep an eye on if we can't measure it in advance properly

Co-authored-by: Cursor <cursoragent@cursor.com>
roryabraham and others added 2 commits February 3, 2026 17:48
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham roryabraham requested a review from amyevans February 4, 2026 01:50
@roryabraham
Copy link
Contributor Author

Great suggestions @amyevans. Updated!

Copy link
Contributor

@amyevans amyevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! ✨

@amyevans amyevans merged commit f8c6441 into main Feb 4, 2026
9 checks passed
@amyevans amyevans deleted the Rory-LogCaptureEmail branch February 4, 2026 14:51
@os-botify
Copy link
Contributor

os-botify bot commented Feb 4, 2026

🚀 Published to npm in 2.0.171 🎉

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