Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 17, 2023
1 parent b99a62b commit e19c8ab
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 @@ -332,8 +332,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 e19c8ab

Please sign in to comment.