mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 15:10:32 +00:00
日志微调
This commit is contained in:
@@ -265,7 +265,7 @@ async function getPageRecordMapByNotionAPI({ pageId, from }) {
|
|||||||
['Post'].indexOf(post[type]?.[0]) > -1 &&
|
['Post'].indexOf(post[type]?.[0]) > -1 &&
|
||||||
post[status]?.[0] === 'Published'
|
post[status]?.[0] === 'Published'
|
||||||
})
|
})
|
||||||
console.error('全部单页', allPages.length, '全部博客', allPosts.length)
|
console.log('全部单页', allPages.length, '全部博客', allPosts.length)
|
||||||
|
|
||||||
// Sort by date
|
// Sort by date
|
||||||
if (BLOG.POSTS_SORT_BY === 'date') {
|
if (BLOG.POSTS_SORT_BY === 'date') {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ async function getPageWithRetry(id, from, retryAttempts = 3) {
|
|||||||
const authToken = BLOG.NOTION_ACCESS_TOKEN || null
|
const authToken = BLOG.NOTION_ACCESS_TOKEN || null
|
||||||
const api = new NotionAPI({ authToken, userTimeZone: 'Asia/ShangHai' })
|
const api = new NotionAPI({ authToken, userTimeZone: 'Asia/ShangHai' })
|
||||||
const pageData = await api.getPage(id)
|
const pageData = await api.getPage(id)
|
||||||
console.info('[响应成功]:', `from:${from}`, `id:${id}`)
|
console.info('[响应成功]:', `from:${from}`)
|
||||||
return pageData
|
return pageData
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn('[响应异常]:', e)
|
console.warn('[响应异常]:', e)
|
||||||
|
|||||||
Reference in New Issue
Block a user