From 458d7c7dea7a6e3fd53fae9c8f460326fe4e4ff3 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 24 Nov 2010 17:38:40 +0100 Subject: [PATCH] [FIX] addons.__init__: fixed mismatching logger API usage bzr revid: odo@openerp.com-20101124163840-eyctlqtgjfq9h1u0 --- bin/addons/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 9fedd3bbdf4..8bc280b73ad 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -874,7 +874,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False): if obj: obj._check_removed_columns(cr, log=True) else: - logger.warning("Model %s is referenced but not present in the orm pool!", model) + logger.notifyChannel('init', netsvc.LOG_WARNING, "Model %s is referenced but not present in the orm pool!" % model) if report.get_report(): logger.notifyChannel('init', netsvc.LOG_INFO, report)