More debug logging

This commit is contained in:
Erik Johnston 2015-01-06 11:24:18 +00:00
parent 753126b8cc
commit f4ea78e9e2
1 changed files with 4 additions and 0 deletions

View File

@ -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 = (