From 478b924a91b67089c76fd3399f0d4b653ea66fe7 Mon Sep 17 00:00:00 2001 From: mistakia <1823355+mistakia@users.noreply.github.com> Date: Tue, 9 Jan 2024 22:16:06 -0500 Subject: [PATCH] chore: improve logging in `import-subreddit` script --- scripts/import-subreddit.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/import-subreddit.mjs b/scripts/import-subreddit.mjs index de3e4291..89764cd8 100644 --- a/scripts/import-subreddit.mjs +++ b/scripts/import-subreddit.mjs @@ -39,9 +39,12 @@ const importSubreddit = async (subreddit, { getFullHistory = false } = {}) => { } if (!res) { + logger('no response received') break } + logger(`found ${res.data.children.length} posts`) + const inserts = [] for (const post of res.data.children) {