I couldn't remember why I did that... but fortunately a single commit changed 
that line:

  [IMP] import hook: correctly set the imported module __name__.

Explanation: Importing with module_name or with 'openerp.addons' + module_name 
will impact the value of the __name__ module variable. This is precisely the 
variable we want to use to set the per-module logger name (with this line

  _logger = logging.getLogger(__name__)
).
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-logging-vmt/+merge/90785
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-logging-vmt.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to