diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-05-11 11:04:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 11:04:03 +0100 |
commit | b378d98c8f93412bc51f0d4b9c4aa2d1701cf523 (patch) | |
tree | 9005f9d37f9cf958286dfcf67eb7ac28cc5359f5 /synapse/federation | |
parent | Fix `m.room_key_request` to-device messages (#9961) (diff) | |
download | synapse-b378d98c8f93412bc51f0d4b9c4aa2d1701cf523.tar.xz |
Add debug logging for issue #9533 (#9959)
Hopefully this will help us track down where to-device messages are getting lost/delayed.
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/sender/per_destination_queue.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/federation/sender/per_destination_queue.py b/synapse/federation/sender/per_destination_queue.py index 3b053ebcfb..3a2efd56ee 100644 --- a/synapse/federation/sender/per_destination_queue.py +++ b/synapse/federation/sender/per_destination_queue.py @@ -28,6 +28,7 @@ from synapse.api.presence import UserPresenceState from synapse.events import EventBase from synapse.federation.units import Edu from synapse.handlers.presence import format_user_presence_state +from synapse.logging import issue9533_logger from synapse.logging.opentracing import SynapseTags, set_tag from synapse.metrics import sent_transactions_counter from synapse.metrics.background_process_metrics import run_as_background_process @@ -574,6 +575,14 @@ class PerDestinationQueue: for content in contents ] + if edus: + issue9533_logger.debug( + "Sending %i to-device messages to %s, up to stream id %i", + len(edus), + self._destination, + stream_id, + ) + return (edus, stream_id) def _start_catching_up(self) -> None: |