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);