[IMP] Update the logging of the error in the osv module
bzr revid: stephane@tinyerp.com-20081210212423-20zjyagn6etc3rzn
This commit is contained in:
parent
2d4a21f9f2
commit
b5b1ab3904
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue