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

Refactor matrixfederationclient to fix logging #3906

Merged
merged 10 commits into from
Sep 18, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Sep 18, 2018

We want to wait until we have read the response body before we log the request as complete, otherwise a confusing thing happens where the request appears to have completed, but we later fail it.

To do this, we factor the salient details of a request out to a separate object, which can then keep track of the txn_id, so that it can be logged.

richvdh and others added 10 commits September 18, 2018 00:54
We want to wait until we have read the response body before we log the request
as complete, otherwise a confusing thing happens where the request appears to
have completed, but we later fail it.

To do this, we factor the salient details of a request out to a separate
object, which can then keep track of the txn_id, so that it can be logged.
…rix-org/synapse into rav/federation_request_logging
@richvdh richvdh requested a review from a team September 18, 2018 16:14
Copy link
Contributor

@hawkowl hawkowl left a comment

Choose a reason for hiding this comment

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

lgtm, plus it has some testing

@richvdh
Copy link
Member Author

richvdh commented Sep 18, 2018

plus it has some testing

written by an expert.

@richvdh richvdh merged commit 31c15dc into develop Sep 18, 2018
@richvdh richvdh deleted the rav/federation_request_logging branch September 18, 2018 17:17
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