diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-06 11:24:18 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-06 11:24:18 +0000 |
commit | f4ea78e9e2578f0d0ba4345b3b45390e905438e3 (patch) | |
tree | a728076f5364b7debf8bdd03a2c2731293eba76a | |
parent | Add some debug logging (diff) | |
download | synapse-f4ea78e9e2578f0d0ba4345b3b45390e905438e3.tar.xz |
More debug logging
-rw-r--r-- | synapse/storage/_base.py | 4 |
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 = ( |