diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-12 17:11:00 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-12 17:11:09 +0100 |
commit | 39e3fc69e5a190371aa6936bfea57e9f8bd5255b (patch) | |
tree | 9039a84cc75dd1f0ac17c310907728c8815e8c96 /synapse/storage/_base.py | |
parent | Fix bug where we incorrectly removed a remote host from the list of hosts in ... (diff) | |
download | synapse-39e3fc69e5a190371aa6936bfea57e9f8bd5255b.tar.xz |
Make the state resolution use actual power levels rather than taking them from a Pdu key.
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 8037225079..8deaaf93bd 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -17,6 +17,7 @@ import logging from twisted.internet import defer from synapse.api.errors import StoreError +from synapse.util.logutils import log_function import collections import copy @@ -91,6 +92,7 @@ class SQLBaseStore(object): self._simple_insert_txn, table, values, or_replace=or_replace ) + @log_function def _simple_insert_txn(self, txn, table, values, or_replace=False): sql = "%s INTO %s (%s) VALUES(%s)" % ( ("INSERT OR REPLACE" if or_replace else "INSERT"), @@ -98,6 +100,12 @@ class SQLBaseStore(object): ", ".join(k for k in values), ", ".join("?" for k in values) ) + + logger.debug( + "[SQL] %s Args=%s Func=%s", + sql, values.values(), + ) + txn.execute(sql, values.values()) return txn.lastrowid |