[IMP] Update the logging of the error in the osv module

bzr revid: stephane@tinyerp.com-20081210212423-20zjyagn6etc3rzn
This commit is contained in:
Stephane Wirtel 2008-12-10 22:24:23 +01:00
parent 2d4a21f9f2
commit b5b1ab3904
1 changed files with 1 additions and 2 deletions

View File

@ -96,8 +96,7 @@ class osv_pool(netsvc.Service):
import traceback
tb_s = reduce(lambda x, y: x+y, traceback.format_exception( sys.exc_type, sys.exc_value, sys.exc_traceback))
logger = Logger()
for idx, s in enumerate(tb_s.split('\n')):
logger.notifyChannel("web-services", LOG_ERROR, '[%2d]: %s' % (idx, s,))
logger.notifyChannel('web-services', LOG_ERROR, tb_s)
raise
def execute(self, db, uid, obj, method, *args, **kw):