Add missing duration argument to database timeout warning
Closes #14944 (grafted from 8a86ff7389e0f759ebb07b6738e24c3e7a4ae309) --HG-- branch : 8.0
This commit is contained in:
@@ -249,7 +249,8 @@ def _dispatch(request, pool, *args, **kwargs):
|
||||
e.fix(transaction_extras)
|
||||
continue
|
||||
except backend.DatabaseTimeoutError:
|
||||
logger.warning(log_message, *log_args, exc_info=True)
|
||||
logger.warning(
|
||||
log_message, *log_args, duration(), exc_info=True)
|
||||
abort(HTTPStatus.REQUEST_TIMEOUT)
|
||||
except backend.DatabaseOperationalError:
|
||||
if count < retry and not rpc.readonly:
|
||||
|
||||
Reference in New Issue
Block a user