Skip to content
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

Add more logs when encrypting messages #1476

Merged
merged 3 commits into from
May 31, 2022
Merged

Add more logs when encrypting messages #1476

merged 3 commits into from
May 31, 2022

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented May 25, 2022

Relates to https://github.com/matrix-org/element-ios-rageshakes/issues/18461

There are rare reports of rooms forgetting that they are encrypted, and it is plausable that this is caused by some state corruption. Given some existing measures that restore summary encryption if crypto store contains an algorithm, this state loss would need to be more comprehensive. Either way there isn't currently enough logs to pinpoint more precisely why encryption is not possible. This PR merely adds a few more logs to the encryption flow.

@Anderas Anderas requested review from a team, pixlwave and BillCarsonFr and removed request for a team May 25, 2022 09:06
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

LGTM, although probably needs a changelog?

Copy link
Member

@BillCarsonFr BillCarsonFr left a comment

Choose a reason for hiding this comment

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

LGTM
Do we have a log when the event is finaly sent (with eventId printed?) would help for investigation.
Also maybe adding the roomId in the new log lines would be helpfull

@Anderas
Copy link
Contributor Author

Anderas commented May 31, 2022

LGTM Do we have a log when the event is finaly sent (with eventId printed?) would help for investigation. Also maybe adding the roomId in the new log lines would be helpfull

Yes we log sending of the message in the HTTP client, which includes the room id as well as temporary local id. Once the message is sent, we log the transformation of the local id into permament id. The logs are a bit scattered around amid other stuff but all the info is there. Adding one more roomId at the start to make this easier.

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.

3 participants