log traceback info for failed api requests
This commit is contained in:
parent
b2a0aa21c9
commit
b7503f8b61
1 changed files with 2 additions and 1 deletions
|
@ -224,7 +224,8 @@ class AuthJSONRPCServer(AuthorizedBase):
|
||||||
else:
|
else:
|
||||||
# last resort, just cast it as a string
|
# last resort, just cast it as a string
|
||||||
error = JSONRPCError(str(failure))
|
error = JSONRPCError(str(failure))
|
||||||
log.warning("error processing api request: %s", error.message)
|
log.warning("error processing api request: %s\ntraceback: %s", error.message,
|
||||||
|
"\n".join(error.traceback))
|
||||||
response_content = jsonrpc_dumps_pretty(error, id=id_)
|
response_content = jsonrpc_dumps_pretty(error, id=id_)
|
||||||
self._set_headers(request, response_content)
|
self._set_headers(request, response_content)
|
||||||
request.setResponseCode(200)
|
request.setResponseCode(200)
|
||||||
|
|
Loading…
Reference in a new issue