summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-01-06 11:24:18 +0000
committerErik Johnston <erik@matrix.org>2015-01-06 11:24:18 +0000
commitf4ea78e9e2578f0d0ba4345b3b45390e905438e3 (patch)
treea728076f5364b7debf8bdd03a2c2731293eba76a /synapse/storage/_base.py
parentAdd some debug logging (diff)
downloadsynapse-f4ea78e9e2578f0d0ba4345b3b45390e905438e3.tar.xz
More debug logging
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index a30b0bc410..de08c78ed0 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -443,6 +443,8 @@ class SQLBaseStore(object):
         if not event_ids:
             return []
 
+        logger.debug("_get_events_txn called with %d events", len(event_ids))
+
         if len(event_ids) > 50:
             events = []
             n = 50
@@ -451,6 +453,8 @@ class SQLBaseStore(object):
                 events.extend(self._get_events_txn(txn, e_ids))
             return events
 
+        logger.debug("_get_events_txn Fetching %d events", len(event_ids))
+
         where_clause = " OR ".join(["e.event_id = ?" for _ in event_ids])
 
         sql = (