better logging on price updates
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s

This commit is contained in:
2026-03-21 12:57:43 -04:00
parent a280891359
commit 2eb3ebad48
+13
View File
@@ -174,6 +174,19 @@ export async function getPostsData(
if (topCount / total >= 0.5) displayTag = topVariant
}
const pagesFetched = hitPageCap
? maxPages
: allPosts.length === 0
? 0
: Math.ceil(allPosts.length / postLimit)
const method = oldestMs < cutoff ? 'direct' : hitPageCap ? 'extrapolated' : 'raw'
console.log(
`[mastodon] #${tag} — pages: ${pagesFetched}, posts: ${allPosts.length}, ` +
`oldest: ${new Date(oldestMs).toISOString()}, newest: ${new Date(newestMs).toISOString()}, ` +
`pph: ${postsPerHour.toFixed(2)} (${method})`,
)
return { postsPerHour, relatedTags, displayTag, hasAnyPosts: true }
}