diff options
author | Matrix <matrix@matrix.org> | 2015-01-06 14:06:25 +0000 |
---|---|---|
committer | Matrix <matrix@matrix.org> | 2015-01-06 14:06:25 +0000 |
commit | 0529a7e2e9284f479f50160b48b4e4686076c06a (patch) | |
tree | 78c34353a754445c1fe417085db69e7265aa780f /synapse | |
parent | Increase default maximum attachment size to 10M (diff) | |
download | synapse-0529a7e2e9284f479f50160b48b4e4686076c06a.tar.xz |
Add some logging for when we are sending transactions.
Diffstat (limited to '')
-rw-r--r-- | synapse/federation/replication.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/federation/replication.py b/synapse/federation/replication.py index 2aa1149d3d..a4c29b484b 100644 --- a/synapse/federation/replication.py +++ b/synapse/federation/replication.py @@ -730,6 +730,7 @@ class _TransactionQueue(object): destinations = set(destinations) destinations.discard(self.server_name) + destinations.discard("localhost") logger.debug("Sending to: %s", str(destinations)) @@ -814,6 +815,8 @@ class _TransactionQueue(object): else: logger.info("TX [%s] is ready for retry", destination) + logger.info("TX [%s] _attempt_new_transaction", destination) + if destination in self.pending_transactions: # XXX: pending_transactions can get stuck on by a never-ending # request at which point pending_pdus_by_dest just keeps growing. @@ -826,6 +829,9 @@ class _TransactionQueue(object): pending_edus = self.pending_edus_by_dest.pop(destination, []) pending_failures = self.pending_failures_by_dest.pop(destination, []) + if pending_pdus: + logger.info("TX [%s] len(pending_pdus_by_dest[dest]) = %d", destination, len(pending_pdus)) + if not pending_pdus and not pending_edus and not pending_failures: return |