mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 07:34:28 +01:00
debug: restore [bunker] logs around highlight signing
- Log before/after factory.sign for highlights - Surface errors to console for fast diagnosis
This commit is contained in:
@@ -116,7 +116,15 @@ export async function createHighlight(
|
||||
}
|
||||
|
||||
// Sign the event
|
||||
const signedEvent = await factory.sign(highlightEvent)
|
||||
console.log('[bunker] Signing highlight event...', { kind: highlightEvent.kind, tags: highlightEvent.tags.length })
|
||||
let signedEvent
|
||||
try {
|
||||
signedEvent = await factory.sign(highlightEvent)
|
||||
console.log('[bunker] ✅ Highlight signed successfully!', { id: signedEvent.id?.slice(0, 8) })
|
||||
} catch (err) {
|
||||
console.error('[bunker] ❌ Highlight signing failed:', err)
|
||||
throw err
|
||||
}
|
||||
|
||||
// Use unified write service to store and publish
|
||||
await publishEvent(relayPool, eventStore, signedEvent)
|
||||
|
||||
Reference in New Issue
Block a user