diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-07-22 13:43:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 13:43:10 +0100 |
commit | b74919c72e9dc8b04a8b39ec257b9613b91af738 (patch) | |
tree | 373bbf75e9bbbd97cd9a5d3e4736f0f6ab7694c1 /synapse/rest/client/v2_alpha/sync.py | |
parent | Remove an unused prometheus metric (#7878) (diff) | |
download | synapse-b74919c72e9dc8b04a8b39ec257b9613b91af738.tar.xz |
Add debugging to sync response generation (#7929)
Diffstat (limited to 'synapse/rest/client/v2_alpha/sync.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/sync.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/sync.py b/synapse/rest/client/v2_alpha/sync.py index 8fa68dd37f..9d81150729 100644 --- a/synapse/rest/client/v2_alpha/sync.py +++ b/synapse/rest/client/v2_alpha/sync.py @@ -183,9 +183,11 @@ class SyncRestServlet(RestServlet): time_now, sync_result, requester.access_token_id, filter_collection ) + logger.debug("Event formatting complete") return 200, response_content async def encode_response(self, time_now, sync_result, access_token_id, filter): + logger.debug("Formatting events in sync response") if filter.event_format == "client": event_formatter = format_event_for_client_v2_without_room_id elif filter.event_format == "federation": @@ -213,6 +215,7 @@ class SyncRestServlet(RestServlet): event_formatter, ) + logger.debug("building sync response dict") return { "account_data": {"events": sync_result.account_data}, "to_device": {"events": sync_result.to_device}, |