Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Pass room_version into event_from_pdu_json#6856

Merged
richvdh merged 1 commit into
developfrom
rav/redact_changes/6
Feb 7, 2020
Merged

Pass room_version into event_from_pdu_json#6856
richvdh merged 1 commit into
developfrom
rav/redact_changes/6

Conversation

@richvdh
Copy link
Copy Markdown
Member

@richvdh richvdh commented Feb 5, 2020

It's called from all over the shop, so this one's a bit messy.

Based on #6823, #6854.

"Ignoring PDU for room %s with unknown version %s",
room_id,
room_version,
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we're logging it seems useful to include why we're ignoring an event?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes, but str(e) will tell us that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But it won't log the room_id or the room version? (UnsupportedRoomVersionError doesn't include those things)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh, ok then. (The uses I have seen don't specify a custom message)

@richvdh richvdh force-pushed the rav/redact_changes/6 branch from 9fa55f4 to 85ee977 Compare February 6, 2020 16:07
It's called from all over the shop, so this one's a bit messy.
@richvdh richvdh force-pushed the rav/redact_changes/6 branch from 85ee977 to 928edef Compare February 6, 2020 16:08
@richvdh richvdh merged commit e1b2403 into develop Feb 7, 2020
@richvdh richvdh deleted the rav/redact_changes/6 branch February 7, 2020 09:22
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'e1b240329':
  Pass room_version into `event_from_pdu_json`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants