log traceback on API exception

This commit is contained in:
Jonathan Warren 2013-08-26 00:06:49 -04:00
parent 14a968b499
commit 3ae8dd8eee

View File

@ -875,8 +875,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
except APIError as e: except APIError as e:
return str(e) return str(e)
except Exception as e: except Exception as e:
logger.critical(e) logger.exception(e)
logger.critical(sys.exc_info()[0])
return "API Error 0021: Unexpected API Failure - %s" % str(e) return "API Error 0021: Unexpected API Failure - %s" % str(e)
# This thread, of which there is only one, runs the API. # This thread, of which there is only one, runs the API.