From fa881c99cb63c9331c965027bb6218b0b40087c1 Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 13 Mar 2007 13:10:51 +0000 Subject: [PATCH] KERNEL: fix log of backtrace bzr revid: ced-5fcc911f81bf6d0af47afa0415d7e95aa8d7edc8 --- bin/netsvc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/netsvc.py b/bin/netsvc.py index 84bdb6def95..0a9bfa53e2e 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -211,7 +211,7 @@ class GenericXMLRPCRequestHandler: return r except Exception,e: logger = Logger() - logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: %s' % traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) + logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: ' + reduce(lambda x, y: x+y, traceback.format_exc())) s=str(e) import tools if tools.config['debug_mode']: @@ -311,7 +311,7 @@ class TinySocketClientThread(threading.Thread): ts.mysend(result) except Exception, e: logger = Logger() - logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: %s' % traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) + logger.notifyChannel("web-services", LOG_ERROR, 'Exception in call: ' + reduce(lambda x, y: x+y, traceback.format_exc())) s=str(e) import tools if tools.config['debug_mode']: