details:   https://code.tryton.org/tryton/commit/8a86ff7389e0
branch:    default
user:      Cédric Krier <[email protected]>
date:      Wed Jul 08 22:23:38 2026 +0200
description:
        Add missing duration argument to database timeout warning

        Closes #14944
diffstat:

 trytond/trytond/protocols/dispatcher.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r c1902c754996 -r 8a86ff7389e0 trytond/trytond/protocols/dispatcher.py
--- a/trytond/trytond/protocols/dispatcher.py   Mon Jul 06 23:36:42 2026 +0200
+++ b/trytond/trytond/protocols/dispatcher.py   Wed Jul 08 22:23:38 2026 +0200
@@ -249,7 +249,8 @@
                 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:

Reply via email to