[FIX] sql_db: oversight of 9fcf3de6a9f10d4171

9fcf3de6a9f10d4171 broke `--log-level=debug_sql`
(`Too many values to unpack`).

closes odoo/odoo#113285

X-original-commit: 4a4be40b0c3efe82c0a8cfbddbec878fe471210d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2023-02-21 21:07:57 +01:00
parent ba2d6b9daa
commit 73ad32189d
+1 -1
View File
@@ -565,7 +565,7 @@ class ConnectionPool(object):
self._lock = threading.Lock()
def __repr__(self):
used = len([1 for c, u in self._connections[:] if u])
used = len([1 for c, u, _ in self._connections[:] if u])
count = len(self._connections)
return "ConnectionPool(used=%d/count=%d/max=%d)" % (used, count, self._maxconn)