Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Mar 2, 2023
1 parent b2bbdb5 commit 489b60d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/appservice/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 489b60d

Please sign in to comment.