From ceb29d4e0f58d21396eedbf9213d4c754b274931 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 19 Aug 2021 18:11:02 +0100 Subject: Add further logging for #9533 If in doubt, print it out. Thanks Erik for advising. --- synapse/rest/client/sync.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'synapse/rest/client/sync.py') diff --git a/synapse/rest/client/sync.py b/synapse/rest/client/sync.py index e18f4d01b3..eb68a672c7 100644 --- a/synapse/rest/client/sync.py +++ b/synapse/rest/client/sync.py @@ -30,6 +30,7 @@ from synapse.http.site import SynapseRequest from synapse.types import JsonDict, StreamToken from synapse.util import json_decoder +from ...logging import issue9533_logger from ._base import client_patterns, set_timeline_upper_limit if TYPE_CHECKING: @@ -185,6 +186,9 @@ class SyncRestServlet(RestServlet): full_state=full_state, ) + issue9533_logger.debug( + "Sync body generated, next batch: %s", sync_result.next_batch + ) # the client may have disconnected by now; don't bother to serialize the # response if so. if request._disconnected: @@ -246,6 +250,9 @@ class SyncRestServlet(RestServlet): if sync_result.to_device: response["to_device"] = {"events": sync_result.to_device} + issue9533_logger.debug( + "to_device sent down in sync %s", response["to_device"] + ) if sync_result.device_lists.changed: response["device_lists"]["changed"] = list(sync_result.device_lists.changed) -- cgit 1.5.1