summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-26 12:26:38 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-26 12:26:38 +0000
commit4f64e73b8c535b01ba3c0c5a92711cdf08eb08b9 (patch)
tree2103682c1be2815ccd2eaa773de2d33a4f63723b /synapse
parentMerge pull request #6175 from matrix-org/babolivier/fix_unique_user_filter_index (diff)
parentadd some logging to the rooms stats updates, to try to track down a flaky tes... (diff)
downloadsynapse-4f64e73b8c535b01ba3c0c5a92711cdf08eb08b9.tar.xz
add some logging to the rooms stats updates, to try to track down a flaky test (#6167)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/stats.py1
-rw-r--r--synapse/storage/stats.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/stats.py b/synapse/handlers/stats.py
index cbac7c347a..c62b113115 100644
--- a/synapse/handlers/stats.py
+++ b/synapse/handlers/stats.py
@@ -293,6 +293,7 @@ class StatsHandler(StateDeltasHandler):
                 room_state["guest_access"] = event_content.get("guest_access")
 
         for room_id, state in room_to_state_updates.items():
+            logger.info("Updating room_stats_state for %s: %s", room_id, state)
             yield self.store.update_room_state(room_id, state)
 
         return room_to_stats_deltas, user_to_stats_deltas
diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py
index 09190d684e..7c224cd3d9 100644
--- a/synapse/storage/stats.py
+++ b/synapse/storage/stats.py
@@ -332,6 +332,9 @@ class StatsStore(StateDeltasStore):
         def _bulk_update_stats_delta_txn(txn):
             for stats_type, stats_updates in updates.items():
                 for stats_id, fields in stats_updates.items():
+                    logger.info(
+                        "Updating %s stats for %s: %s", stats_type, stats_id, fields
+                    )
                     self._update_stats_delta_txn(
                         txn,
                         ts=ts,