diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2012-01-24 18:30:17 +0100 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2012-01-24 18:30:17 +0100 |
| commit | f057f2afa5bf42fd3dc9894b5e136e59d9446f34 (patch) | |
| tree | f5e4a6cd3265701a179b0653051d9a3a38ffc37d /openerp/report/render/makohtml2html/makohtml2html.py | |
| parent | 402bddc06ab3b88a14b58895f1bcd96f014a77bc (diff) | |
[IMP] openerp.loglevels: removed calls to openerp.loglevels.Logger().
bzr revid: vmt@openerp.com-20120124173017-c66z3kq11wmbrrke
Diffstat (limited to 'openerp/report/render/makohtml2html/makohtml2html.py')
| -rw-r--r-- | openerp/report/render/makohtml2html/makohtml2html.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openerp/report/render/makohtml2html/makohtml2html.py b/openerp/report/render/makohtml2html/makohtml2html.py index 1682385be19..57e57bd8d63 100644 --- a/openerp/report/render/makohtml2html/makohtml2html.py +++ b/openerp/report/render/makohtml2html/makohtml2html.py @@ -18,6 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## +import logging import mako from lxml import etree from mako.template import Template @@ -25,6 +26,8 @@ from mako.lookup import TemplateLookup import openerp.netsvc as netsvc import traceback, sys, os +_logger = logging.getLogger(__name__) + class makohtml2html(object): def __init__(self, html, localcontext): self.localcontext = localcontext @@ -125,8 +128,7 @@ class makohtml2html(object): return final_html except Exception,e: tb_s = reduce(lambda x, y: x+y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) - netsvc.Logger().notifyChannel('report', netsvc.LOG_ERROR, - 'report :\n%s\n%s\n' % (tb_s, str(e))) + _logger.error('report :\n%s\n%s\n', tb_s, str(e)) def parseNode(html, localcontext = {}): r = makohtml2html(html, localcontext) |
