interface: explain how to make aiorpcx log json traffic
What changed, and why it matters
This commit only adds a comment explaining how to enable debug logging of JSON network traffic. No code behavior changes, no security fix or vulnerability introduced.
No action needed; this is a documentation-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds three lines of comments in electrum/interface.py inside NotificationSession.init showing how to make aiorpcx log pre-processed JSON traffic by setting logger level to DEBUG and verbosity to 4. The lines are commented out and do not alter runtime behavior.
Changed components
electrum/interface.pyInspect captured patch +4 / −0
diff --git a/electrum/interface.py b/electrum/interface.py
index 7f0af68..918ead8 100644
--- a/electrum/interface.py
+++ b/electrum/interface.py
@@ -170,6 +170,10 @@ class NotificationSession(RPCSession):
self.taskgroup = interface.taskgroup
self.cost_hard_limit = 0 # disable aiorpcx resource limits
+ # To log pre-processed json traffic, uncomment:
+ #self.logger.setLevel(logging.DEBUG) # from aiorpcx
+ #self.verbosity = 4
+
async def handle_request(self, request):
self.maybe_log(f"--> {request}")
try:
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.