diff options
author | Richard van der Hoff <github@rvanderhoff.org.uk> | 2017-03-08 18:00:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 18:00:44 +0000 |
commit | 6ad71cc29d8e0f8f5cc7976a84fa0b953edf0f82 (patch) | |
tree | 5e68c55d74fa0aed14f3b2d54d76e3fbb313b443 | |
parent | Merge pull request #1969 from matrix-org/erikj/get_distinct_devices (diff) | |
download | synapse-6ad71cc29d8e0f8f5cc7976a84fa0b953edf0f82.tar.xz |
Remove spurious SQL logging (#1972)
looks like the upsert function was accidentally sending sql logging to the general logger. We already log the sql in `txn.execute`.
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/_base.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 4410cd9e62..a7a8ec9b7b 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -488,10 +488,6 @@ class SQLBaseStore(object): " AND ".join("%s = ?" % (k,) for k in keyvalues) ) sqlargs = values.values() + keyvalues.values() - logger.debug( - "[SQL] %s Args=%s", - sql, sqlargs, - ) txn.execute(sql, sqlargs) if txn.rowcount == 0: @@ -506,10 +502,6 @@ class SQLBaseStore(object): ", ".join(k for k in allvalues), ", ".join("?" for _ in allvalues) ) - logger.debug( - "[SQL] %s Args=%s", - sql, keyvalues.values(), - ) txn.execute(sql, allvalues.values()) return True |