From 51e255f70b37cca961ff2f5ba210e7940b77c250 Mon Sep 17 00:00:00 2001 From: robbond Date: Tue, 24 Mar 2026 10:35:09 +0000 Subject: [PATCH] fix(email): log notify send attempts without error framing --- pages/api/email/notify.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pages/api/email/notify.js b/pages/api/email/notify.js index a03b1aa7..767e93aa 100644 --- a/pages/api/email/notify.js +++ b/pages/api/email/notify.js @@ -63,10 +63,15 @@ export default async function ApiProxy(req, res) { const notifyClient = new NotifyClient(process.env.NOTIFY_API_KEY); //const emailReplyToId = process.env.EMAIL_REPLY_TO_ID; - consoleLogger({ - event: "notify_send_attempt", - payload: redactSensitive(data) - }); + console.info( + "notify_send_attempt", + redactSensitive({ + templateId: data.templateId, + emailAddress: data.emailAddress, + reference: data.reference, + personalisation: data.personalisation + }) + ); try { await notifyClient.sendEmail(data.templateId, data.emailAddress, {