From ab9cd7fcd6ce3349c84b0f37a6ecb5997419b85e Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Mon, 25 Nov 2024 11:21:56 +0100 Subject: [PATCH] [IMP] update: show database name in log message Fixes #156 ``` 2024-11-25 10:16:35,445 2665075 INFO 17test click_odoo_contrib.update: Updating addons for their hash changed: auditlog. ``` --- click_odoo_contrib/update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/click_odoo_contrib/update.py b/click_odoo_contrib/update.py index aefb708..b241ddf 100644 --- a/click_odoo_contrib/update.py +++ b/click_odoo_contrib/update.py @@ -280,6 +280,7 @@ def _update_db( @contextmanager def OdooEnvironmentWithUpdate(database, ctx, **kwargs): + threading.current_thread().dbname = database # Watch for database locks while Odoo updates watcher = None if ctx.params["watcher_max_seconds"] > 0: