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

send queue: add useful logs when aborting/editing a local echo #3630

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Jul 1, 2024

These logs may help with debugging issues around editing of local echoes.

Part of #3361.

@bnjbvr bnjbvr requested a review from a team as a code owner July 1, 2024 10:53
@bnjbvr bnjbvr requested review from andybalaam and removed request for a team July 1, 2024 10:53
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.22%. Comparing base (52fa00e) to head (b350b5c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3630      +/-   ##
==========================================
+ Coverage   84.19%   84.22%   +0.02%     
==========================================
  Files         256      256              
  Lines       26555    26560       +5     
==========================================
+ Hits        22359    22370      +11     
+ Misses       4196     4190       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

crates/matrix-sdk/src/send_queue.rs Outdated Show resolved Hide resolved
crates/matrix-sdk/src/send_queue.rs Outdated Show resolved Hide resolved
@@ -879,21 +886,28 @@ impl SendHandle {
///
/// Returns true if the event to be sent was replaced, false if not (i.e.
/// the event had already been sent).
#[instrument(skip(self, new_content), fields(room_id = %self.room.inner.room.room_id(), txn_id = %self.transaction_id))]
Copy link
Contributor

Choose a reason for hiding this comment

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

That's a bit of a long line, sadly rustfmt doesn't want to touch macros.

@bnjbvr bnjbvr requested review from poljar and removed request for andybalaam July 1, 2024 11:29
@bnjbvr bnjbvr merged commit 2507a45 into main Jul 1, 2024
39 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/log-send-q branch July 1, 2024 12:12
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