mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
interface.debug will now also print errors
This commit is contained in:
parent
62e6ca50e1
commit
4fc43da344
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,7 @@ import logging
|
||||||
import aiorpcx
|
import aiorpcx
|
||||||
from aiorpcx import RPCSession, Notification, NetAddress
|
from aiorpcx import RPCSession, Notification, NetAddress
|
||||||
from aiorpcx.curio import timeout_after, TaskTimeout
|
from aiorpcx.curio import timeout_after, TaskTimeout
|
||||||
from aiorpcx.jsonrpc import JSONRPC
|
from aiorpcx.jsonrpc import JSONRPC, CodeMessageError
|
||||||
from aiorpcx.rawsocket import RSClient
|
from aiorpcx.rawsocket import RSClient
|
||||||
import certifi
|
import certifi
|
||||||
|
|
||||||
|
@ -115,6 +115,9 @@ class NotificationSession(RPCSession):
|
||||||
timeout)
|
timeout)
|
||||||
except (TaskTimeout, asyncio.TimeoutError) as e:
|
except (TaskTimeout, asyncio.TimeoutError) as e:
|
||||||
raise RequestTimedOut(f'request timed out: {args} (id: {msg_id})') from e
|
raise RequestTimedOut(f'request timed out: {args} (id: {msg_id})') from e
|
||||||
|
except CodeMessageError as e:
|
||||||
|
self.maybe_log(f"--> {repr(e)} (id: {msg_id})")
|
||||||
|
raise
|
||||||
else:
|
else:
|
||||||
self.maybe_log(f"--> {response} (id: {msg_id})")
|
self.maybe_log(f"--> {response} (id: {msg_id})")
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Add table
Reference in a new issue