mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Add debugging to sync response generation (#7929)
This commit is contained in:
parent
931b026844
commit
b74919c72e
3 changed files with 19 additions and 2 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue