debug: add logging for event ID requests

- Log how many note IDs and coordinates we're requesting
- Log how many unique event IDs are passed to EventLoader
- Track if all bookmarks are being requested for hydration
This commit is contained in:
Gigi
2025-10-22 00:11:06 +02:00
parent f02bc21faf
commit 42d7143845

View File

@@ -135,6 +135,8 @@ class BookmarkController {
return return
} }
console.log(`📡 hydrateByIds: requesting ${unique.length} events from EventLoader`)
// Convert IDs to EventPointers // Convert IDs to EventPointers
const pointers: EventPointer[] = unique.map(id => ({ id })) const pointers: EventPointer[] = unique.map(id => ({ id }))
@@ -265,6 +267,8 @@ class BookmarkController {
} }
}) })
console.log(`📋 Requesting hydration for: ${noteIds.length} note IDs, ${coordinates.length} coordinates`)
// Helper to build and emit bookmarks // Helper to build and emit bookmarks
const emitBookmarks = (idToEvent: Map<string, NostrEvent>) => { const emitBookmarks = (idToEvent: Map<string, NostrEvent>) => {
const allBookmarks = dedupeBookmarksById([ const allBookmarks = dedupeBookmarksById([