summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-22 14:44:25 +0100
committerErik Johnston <erik@matrix.org>2015-05-22 14:44:25 +0100
commitb21d015c55dde5255c7a63f8d17e77caf535030b (patch)
tree4078ebc4d4194209886fe41107b22cc0d5c44087
parentAdd txn_id to some log lines (diff)
downloadsynapse-b21d015c55dde5255c7a63f8d17e77caf535030b.tar.xz
Log origin and stats of incoming transactions
-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"]