mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 16:59:23 -05:00
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`.
This commit is contained in:
parent
c98d91fe94
commit
6ad71cc29d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user