better logging on price updates
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user