Skip to content

Commit

Permalink
[IMP] update: show database name in log message
Browse files Browse the repository at this point in the history
Fixes #156

```
2024-11-25 10:16:35,445 2665075 INFO 17test click_odoo_contrib.update: Updating addons for their hash changed: auditlog.
```
  • Loading branch information
StefanRijnhart committed Nov 25, 2024
1 parent 41d2674 commit ab9cd7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions click_odoo_contrib/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ab9cd7f

Please sign in to comment.