From 5079fcb49dbeb2ece18012d18841b564337e9c46 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 17 Jan 2023 15:50:53 -0700 Subject: [PATCH] Add debugging --- synapse/appservice/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py index 4a84fb63832c..d77bfeb0f1b7 100644 --- a/synapse/appservice/api.py +++ b/synapse/appservice/api.py @@ -342,8 +342,9 @@ async def push_bulk( has_edus = service.supports_ephemeral and len(ephemeral) > 0 has_device_list_changes = service.msc3202_transaction_extensions and (len(list(device_list_summary.changed)) > 0 or len(list(device_list_summary.left)) > 0) has_messages = service.supports_ephemeral and len(to_device_messages) > 0 + logger.info("Transaction properties: has_events=%s, has_edus=%s, has_device_list_changes=%s, has_messages=%s", has_events, has_edus, has_device_list_changes, has_messages) if not has_events and not has_edus and not has_device_list_changes and not has_messages: - logger.info("Returning early on transaction: no events to send") + logger.info("Returning early on transaction: nothing to send.") return True try: