diff options
author | David Robertson <davidr@element.io> | 2021-08-19 18:11:02 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2021-08-19 18:21:16 +0100 |
commit | ceb29d4e0f58d21396eedbf9213d4c754b274931 (patch) | |
tree | ed1939d2e5e85a846e5aa83e4f9d9050b82a6ead /synapse/rest/client/sync.py | |
parent | Convert room member storage tuples to attrs. (#10629) (diff) | |
download | synapse-ceb29d4e0f58d21396eedbf9213d4c754b274931.tar.xz |
Add further logging for #9533 github/dmr/missing_to_device dmr/missing_to_device
If in doubt, print it out. Thanks Erik for advising.
Diffstat (limited to 'synapse/rest/client/sync.py')
-rw-r--r-- | synapse/rest/client/sync.py | 7 |
1 files changed, 7 insertions, 0 deletions
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) |