From 2f620265f410b0e8e500a43c96e52ebbf89e10e9 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sat, 18 Oct 2025 00:54:56 +0200 Subject: [PATCH] chore: clean up verbose debug logging in hydration methods Removed excessive per-event logging from EventLoader and AddressLoader subscriptions. Keep only essential logs: - Initial hydration count - Error logging This reduces console noise while maintaining visibility into hydration progress and errors. --- src/services/bookmarkController.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/services/bookmarkController.ts b/src/services/bookmarkController.ts index c3a52535..f77d38e7 100644 --- a/src/services/bookmarkController.ts +++ b/src/services/bookmarkController.ts @@ -147,7 +147,6 @@ class BookmarkController { // Check if hydration was cancelled if (this.hydrationGeneration !== generation) return - console.log('[bookmark] 📨 Received event:', event.id.slice(0, 8), 'kind:', event.kind) idToEvent.set(event.id, event) // Also index by coordinate for addressable events @@ -161,9 +160,6 @@ class BookmarkController { }, error: (error) => { console.error('[bookmark] ❌ EventLoader error:', error) - }, - complete: () => { - console.log('[bookmark] ✅ EventLoader completed') } }) } @@ -199,7 +195,6 @@ class BookmarkController { // Check if hydration was cancelled if (this.hydrationGeneration !== generation) return - console.log('[bookmark] 📨 Received addressable event:', event.id.slice(0, 8), 'kind:', event.kind) const dTag = event.tags?.find((t: string[]) => t[0] === 'd')?.[1] || '' const coordinate = `${event.kind}:${event.pubkey}:${dTag}` idToEvent.set(coordinate, event) @@ -209,9 +204,6 @@ class BookmarkController { }, error: (error) => { console.error('[bookmark] ❌ AddressLoader error:', error) - }, - complete: () => { - console.log('[bookmark] ✅ AddressLoader completed') } }) }