log traceback on API exception

This commit is contained in:
Jonathan Warren 2013-08-26 00:06:49 -04:00
parent 14a968b499
commit 3ae8dd8eee
1 changed files with 1 additions and 2 deletions

View File

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