From 3a6638ab2b894cf1cdc8e0d74adbcd55687e4198 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 18 Jul 2011 16:05:59 +0200 Subject: [PATCH] [FIX] account: installer logging bzr revid: xmo@openerp.com-20110718140559-sd43na26gge169ms --- addons/account/installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index 764809d2cf0..1f16e066578 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -19,6 +19,7 @@ # ############################################################################## +import logging import time import datetime from dateutil.relativedelta import relativedelta @@ -33,6 +34,7 @@ import tools class account_installer(osv.osv_memory): _name = 'account.installer' _inherit = 'res.config.installer' + __logger = logging.getLogger(_name) def _get_charts(self, cr, uid, context=None): modules = self.pool.get('ir.module.module') @@ -232,9 +234,7 @@ class account_installer(osv.osv_memory): cr, uid, ids, context=context) chart = self.read(cr, uid, ids, ['charts'], context=context)[0]['charts'] - self.logger.notifyChannel( - 'installer', netsvc.LOG_DEBUG, - 'Installing chart of accounts %s'%chart) + self.__logger.debug('Installing chart of accounts %s', chart) return modules | set([chart]) account_installer()