mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 12:16:12 +00: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)
|
" AND ".join("%s = ?" % (k,) for k in keyvalues)
|
||||||
)
|
)
|
||||||
sqlargs = values.values() + keyvalues.values()
|
sqlargs = values.values() + keyvalues.values()
|
||||||
logger.debug(
|
|
||||||
"[SQL] %s Args=%s",
|
|
||||||
sql, sqlargs,
|
|
||||||
)
|
|
||||||
|
|
||||||
txn.execute(sql, sqlargs)
|
txn.execute(sql, sqlargs)
|
||||||
if txn.rowcount == 0:
|
if txn.rowcount == 0:
|
||||||
@ -506,10 +502,6 @@ class SQLBaseStore(object):
|
|||||||
", ".join(k for k in allvalues),
|
", ".join(k for k in allvalues),
|
||||||
", ".join("?" for _ in allvalues)
|
", ".join("?" for _ in allvalues)
|
||||||
)
|
)
|
||||||
logger.debug(
|
|
||||||
"[SQL] %s Args=%s",
|
|
||||||
sql, keyvalues.values(),
|
|
||||||
)
|
|
||||||
txn.execute(sql, allvalues.values())
|
txn.execute(sql, allvalues.values())
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user