summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-05-09 11:18:00 +0100
committerErik Johnston <erik@matrix.org>2016-05-09 11:18:00 +0100
commit100e2c42f61203945066821bbbd5992d79edd051 (patch)
treefd90770b5b08af90de09c520c8432189b2de6523 /synapse
parentMerge pull request #772 from matrix-org/erikj/get_user_cache (diff)
parentDon't warn (diff)
downloadsynapse-100e2c42f61203945066821bbbd5992d79edd051.tar.xz
Merge pull request #764 from matrix-org/erikj/replication_logging
Add some log information at returned replication streams
Diffstat (limited to 'synapse')
-rw-r--r--synapse/replication/resource.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/replication/resource.py b/synapse/replication/resource.py
index ff78c60f13..69ad1de863 100644
--- a/synapse/replication/resource.py
+++ b/synapse/replication/resource.py
@@ -159,6 +159,15 @@ class ReplicationResource(Resource):
 
         result = yield self.notifier.wait_for_replication(replicate, timeout)
 
+        for stream_name, stream_content in result.items():
+            logger.info(
+                "Replicating %d rows of %s from %s -> %s",
+                len(stream_content["rows"]),
+                stream_name,
+                stream_content["position"],
+                request_streams.get(stream_name),
+            )
+
         request.write(json.dumps(result, ensure_ascii=False))
         finish_request(request)