[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:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user