From fef895295f2a47900d4a4bd132e0b819a5883561 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 14 Mar 2024 12:52:11 +0000 Subject: [PATCH] interface: also log cancellations in send_request --- electrum/interface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electrum/interface.py b/electrum/interface.py index 352aedb6b..11786d2db 100644 --- a/electrum/interface.py +++ b/electrum/interface.py @@ -170,10 +170,14 @@ class NotificationSession(RPCSession): super().send_request(*args, **kwargs), timeout) except (TaskTimeout, asyncio.TimeoutError) as e: + self.maybe_log(f"--> request timed out: {args} (id: {msg_id})") 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 + except BaseException as e: # cancellations, etc. are useful for debugging + self.maybe_log(f"--> {repr(e)} (id: {msg_id})") + raise else: self.maybe_log(f"--> {response} (id: {msg_id})") return response