From 38d2f480244130ee8cf1255254821f5a4a4d687d Mon Sep 17 00:00:00 2001 From: mrrfv Date: Thu, 7 Sep 2023 21:05:42 +0200 Subject: [PATCH] Show how much over the domain limit we are --- cf_list_create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf_list_create.js b/cf_list_create.js index 6eeb9b2..5b247fa 100644 --- a/cf_list_create.js +++ b/cf_list_create.js @@ -101,8 +101,8 @@ fs.readFile('input.csv', 'utf8', async (err, data) => { // Trim array to 300,000 domains if it's longer than that if (domains.length > LIST_ITEM_LIMIT) { + console.warn(`${domains.length} domains found in input.csv - input has to be trimmed to ${LIST_ITEM_LIMIT} domains`); domains = trimArray(domains, LIST_ITEM_LIMIT); - console.warn(`More than ${LIST_ITEM_LIMIT} domains found in input.csv - input has to be trimmed`); } const listsToCreate = Math.ceil(domains.length / 1000);