forked from LBRYCommunity/lbry-sdk
log dropped api request instead of stack trace
This commit is contained in:
parent
9f071bbe36
commit
e047748961
1 changed files with 3 additions and 0 deletions
|
@ -489,6 +489,9 @@ class Daemon(metaclass=JSONRPCServerType):
|
|||
if asyncio.iscoroutine(result):
|
||||
result = await result
|
||||
return result
|
||||
except asyncio.CancelledError:
|
||||
log.info("cancelled API call for: %s", function_name)
|
||||
raise
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
log.exception("error handling api request")
|
||||
return JSONRPCError(
|
||||
|
|
Loading…
Reference in a new issue