From c5efc841ba70aed6eb251592feb6952af0f201af Mon Sep 17 00:00:00 2001 From: tangly Date: Tue, 18 Oct 2022 12:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getNotionData.js | 2 +- lib/notion/getPostBlocks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index b243fadf..177c4900 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -265,7 +265,7 @@ async function getPageRecordMapByNotionAPI({ pageId, from }) { ['Post'].indexOf(post[type]?.[0]) > -1 && post[status]?.[0] === 'Published' }) - console.error('全部单页', allPages.length, '全部博客', allPosts.length) + console.log('全部单页', allPages.length, '全部博客', allPosts.length) // Sort by date if (BLOG.POSTS_SORT_BY === 'date') { diff --git a/lib/notion/getPostBlocks.js b/lib/notion/getPostBlocks.js index dfd3988e..f5712b8c 100644 --- a/lib/notion/getPostBlocks.js +++ b/lib/notion/getPostBlocks.js @@ -35,7 +35,7 @@ async function getPageWithRetry(id, from, retryAttempts = 3) { const authToken = BLOG.NOTION_ACCESS_TOKEN || null const api = new NotionAPI({ authToken, userTimeZone: 'Asia/ShangHai' }) const pageData = await api.getPage(id) - console.info('[响应成功]:', `from:${from}`, `id:${id}`) + console.info('[响应成功]:', `from:${from}`) return pageData } catch (e) { console.warn('[响应异常]:', e)