From 9cfab4bce64d1555832cc87c6e6e79ca13cca276 Mon Sep 17 00:00:00 2001 From: Avi Date: Sat, 12 Sep 2026 05:48:40 -0500 Subject: [PATCH] chore(signer): log pairing start and session failures to stderr Pairing failures were invisible: fail() wrote nothing and the only success-path trace was the URI. Backend stderr is captured by Electron, so a stalled handshake is now diagnosable from /tmp logs. --- src/signer/nip46_client.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/signer/nip46_client.rs b/src/signer/nip46_client.rs index 66eb353..3a0e9c2 100644 --- a/src/signer/nip46_client.rs +++ b/src/signer/nip46_client.rs @@ -790,6 +790,8 @@ impl Nip46ClientSigner { } fn fail(&self, message: impl Into) { + let message = message.into(); + eprintln!("[nip46] session failed: {message}"); if let Ok(mut inner) = self.inner.try_lock() { inner.phase = Nip46Phase::Error(message.into()); inner.task = None;