diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-06 11:18:12 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-06 11:18:12 +0000 |
commit | 753126b8ccb56dc6539ce95758f3e87fe181064d (patch) | |
tree | 575b5c9b18cd1c7a4261f27f3786b4a2beb9e9ac /synapse | |
parent | Reformat (diff) | |
download | synapse-753126b8ccb56dc6539ce95758f3e87fe181064d.tar.xz |
Add some debug logging
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/state.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index ab80909712..9aeb0b4063 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -15,6 +15,10 @@ from ._base import SQLBaseStore +import logging + +logger = logging.getLogger(__name__) + class StateStore(SQLBaseStore): """ Keeps track of the state at a given event. @@ -54,6 +58,8 @@ class StateStore(SQLBaseStore): if group: groups.add(group) + logger.debug("Got groups: %s", groups) + res = {} for group in groups: state_ids = self._simple_select_onecol_txn( @@ -62,6 +68,12 @@ class StateStore(SQLBaseStore): keyvalues={"state_group": group}, retcol="event_id", ) + + logger.debug( + "Got %d events for group %s", + len(state_ids), group + ) + state = self._get_events_txn(txn, state_ids) res[group] = state |