debug: add comprehensive logging for bunker reconnection and signing

- Add detailed logs for active account changes and bunker detection
- Log signer status (listening, isConnected, hasRemote)
- Log each step of reconnection process
- Add signing attempt logs in highlightCreationService
- This will help diagnose where the signing process hangs
This commit is contained in:
Gigi
2025-10-16 22:08:14 +02:00
parent 0426c9d3b0
commit 272066c6e0
2 changed files with 26 additions and 4 deletions

View File

@@ -116,7 +116,9 @@ export async function createHighlight(
}
// Sign the event
console.log('🖊️ Signing highlight event...', { kind: highlightEvent.kind, tags: highlightEvent.tags.length })
const signedEvent = await factory.sign(highlightEvent)
console.log('✅ Highlight signed successfully!', { id: signedEvent.id.slice(0, 8) })
// Use unified write service to store and publish
await publishEvent(relayPool, eventStore, signedEvent)