summary refs log tree commit diff
path: root/synapse/federation/transport/server.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-05-22 16:03:52 +0100
committerMark Haines <mjark@negativecurvature.net>2015-05-22 16:03:52 +0100
commit4752a990c890e70d43c04aaa9703b5d54ca6bb46 (patch)
tree4078ebc4d4194209886fe41107b22cc0d5c44087 /synapse/federation/transport/server.py
parentInvalidate the get_latest_event_ids_in_room cache when deleting from event_fo... (diff)
parentLog origin and stats of incoming transactions (diff)
downloadsynapse-4752a990c890e70d43c04aaa9703b5d54ca6bb46.tar.xz
Merge pull request #161 from matrix-org/erikj/txn_logging_fix
Erikj/txn logging fix
Diffstat (limited to 'synapse/federation/transport/server.py')
-rw-r--r--synapse/federation/transport/server.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index 2bfe0f3c9b..af87805f34 100644
--- a/synapse/federation/transport/server.py
+++ b/synapse/federation/transport/server.py
@@ -196,6 +196,14 @@ class FederationSendServlet(BaseFederationServlet):
                 transaction_id, str(transaction_data)
             )
 
+            logger.info(
+                "Received txn %s from %s. (PDUs: %d, EDUs: %d, failures: %d)",
+                transaction_id, origin,
+                len(transaction_data.get("pdus", [])),
+                len(transaction_data.get("edus", [])),
+                len(transaction_data.get("failures", [])),
+            )
+
             # We should ideally be getting this from the security layer.
             # origin = body["origin"]