mirror of
https://github.com/dergigi/boris.git
synced 2025-12-23 01:24:19 +01:00
debug: add logs to trace why events aren't processed
- Log sample event to see format - Log map size after processEvents to see if it worked - This will show if processEvents is failing silently
This commit is contained in:
@@ -146,9 +146,11 @@ class ReadingProgressController {
|
|||||||
subscription.unsubscribe()
|
subscription.unsubscribe()
|
||||||
|
|
||||||
console.log('📊 [ReadingProgress] Processing', localEvents.length, 'events from local store')
|
console.log('📊 [ReadingProgress] Processing', localEvents.length, 'events from local store')
|
||||||
|
console.log('📊 [ReadingProgress] Sample event:', localEvents[0] ? { kind: localEvents[0].kind, author: localEvents[0].pubkey?.slice(0, 8), tags: localEvents[0].tags } : 'none')
|
||||||
|
|
||||||
if (localEvents.length > 0) {
|
if (localEvents.length > 0) {
|
||||||
this.processEvents(localEvents)
|
this.processEvents(localEvents)
|
||||||
|
console.log('📊 [ReadingProgress] After processEvents, map size:', this.currentProgressMap.size)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. Then fetch from relays (incremental or full) to augment local data
|
// 2. Then fetch from relays (incremental or full) to augment local data
|
||||||
|
|||||||
Reference in New Issue
Block a user