From e565c89cde9a57a252be4dd5dd67729dc403a925 Mon Sep 17 00:00:00 2001 From: Joey Zhou Date: Mon, 13 Jan 2025 17:17:34 -0800 Subject: [PATCH] fix: why is there console log --- src/scripts/cronjobs/churnDiscount.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/cronjobs/churnDiscount.tsx b/src/scripts/cronjobs/churnDiscount.tsx index 5f7f4cc3824..837d1a7b150 100644 --- a/src/scripts/cronjobs/churnDiscount.tsx +++ b/src/scripts/cronjobs/churnDiscount.tsx @@ -74,7 +74,7 @@ async function readCSVFromBucket( }) .on("error", reject) .on("end", () => { - console.log( + logger.info( `CSV file successfully processed. Num of rows: ${results.length}`, ); resolve(results); @@ -119,13 +119,13 @@ async function run() { } closeEmailPool(); - console.log( + logger.info( `[${new Date(Date.now()).toISOString()}] Sent [${subscribersToEmail.length}] churn email to relevant subscribers.`, ); } async function sendChurnDiscountEmail(subscriber: FxaChurnSubscriber) { - console.log(`sent email to: ${subscriber.userid}`); + logger.info(`sent email to: ${subscriber.userid}`); // mark as sent // await markChurnPreventionEmailAsJustSent(parseInt(subscriber.userid, 10)) }