From 938efeb59565a6931e79ec9cc0f23558338ac21e Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 29 Apr 2021 16:41:16 +0100 Subject: Add some logging --- synapse/federation/federation_client.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'synapse/federation/federation_client.py') diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index a5b6a61195..5fb342c097 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -669,16 +669,22 @@ class FederationClient(FederationBase): logger.debug("Got content: %s", content) + logger.info("send_join content: %d", len(content)) + state = [ event_from_pdu_json(p, room_version, outlier=True) for p in content.get("state", []) ] + logger.info("Parsed auth chain: %d", len(state)) + auth_chain = [ event_from_pdu_json(p, room_version, outlier=True) for p in content.get("auth_chain", []) ] + logger.info("Parsed auth chain: %d", len(auth_chain)) + pdus = {p.event_id: p for p in itertools.chain(state, auth_chain)} create_event = None @@ -711,6 +717,8 @@ class FederationClient(FederationBase): room_version=room_version, ) + logger.info("_check_sigs_and_hash_and_fetch done") + valid_pdus_map = {p.event_id: p for p in valid_pdus} # NB: We *need* to copy to ensure that we don't have multiple @@ -744,6 +752,8 @@ class FederationClient(FederationBase): % (auth_chain_create_events,) ) + logger.info("Returning from send_join") + return { "state": signed_state, "auth_chain": signed_auth, -- cgit 1.5.1