Skip to content

Log userID when using syncMembershipIn to better differentiate checks#879

Merged
MadLittleMods merged 1 commit into
mainfrom
madlittlemods/syncMembershipIn-user-id
Jun 9, 2026
Merged

Log userID when using syncMembershipIn to better differentiate checks#879
MadLittleMods merged 1 commit into
mainfrom
madlittlemods/syncMembershipIn-user-id

Conversation

@MadLittleMods

@MadLittleMods MadLittleMods commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Log userID when using syncMembershipIn to better differentiate checks

Spawning from staring at some logs and wanting to know which user this pertains to without having to dive into the test source:

      federation_rooms_invite_test.go:151: @user-58-alice:hs1 MustSyncUntil: timed out after 5.441786693s. Seen 6 /sync responses. Checkers:
          [t=391.995078ms] Response #1: syncMembershipIn(!nQhJEXkKJaajxcXaif:hs1, leave): check function did not pass while iterating ...

Pull Request Checklist

Comment thread client/sync.go
roomTypeKey = "knock"
} else {
return fmt.Errorf("syncMembershipIn(%s, %s): unknown membership: %s", roomID, membership, membership)
return fmt.Errorf("syncMembershipIn(%s, %s, %s): unknown membership: %s", userID, roomID, membership, membership)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This also matches how the function is called: syncMembershipIn(userID, roomID, membership string, ...)

@MadLittleMods MadLittleMods marked this pull request as ready for review June 8, 2026 19:46
@MadLittleMods MadLittleMods requested review from a team as code owners June 8, 2026 19:46
@MadLittleMods MadLittleMods merged commit bc2b638 into main Jun 9, 2026
4 checks passed
@MadLittleMods MadLittleMods deleted the madlittlemods/syncMembershipIn-user-id branch June 9, 2026 15:45
@MadLittleMods

Copy link
Copy Markdown
Collaborator Author

Thanks for the review @erikjohnston 🐀

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