mirror of
https://github.com/dergigi/boris.git
synced 2026-01-17 13:54:24 +01:00
debug: add more detail to hydration logging
This commit is contained in:
@@ -205,8 +205,9 @@ export function hydrateItems(
|
||||
|
||||
// Debug: log how many items have content
|
||||
const withContent = hydrated.filter(i => i.content && i.content.length > 0)
|
||||
if (withContent.length > 0 || hydrated.length > 0) {
|
||||
console.log(`📝 Hydrated ${withContent.length}/${hydrated.length} items have content`)
|
||||
const notFound = items.filter(i => !idToEvent.has(i.id))
|
||||
if (hydrated.length > 0) {
|
||||
console.log(`📝 Hydrated ${withContent.length}/${hydrated.length} have content, ${notFound.length}/${items.length} not found in map`)
|
||||
}
|
||||
|
||||
return hydrated
|
||||
|
||||
Reference in New Issue
Block a user