KERNEL: fix log of backtrace

bzr revid: ced-5fcc911f81bf6d0af47afa0415d7e95aa8d7edc8
This commit is contained in:
ced 2007-03-13 13:10:51 +00:00
parent e5f739ad5d
commit fa881c99cb
1 changed files with 2 additions and 2 deletions

View File

@ -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']: