diff --git a/server/email/sendemail.js b/server/email/sendemail.js index 802d61e0f..dc2387b1f 100644 --- a/server/email/sendemail.js +++ b/server/email/sendemail.js @@ -209,11 +209,9 @@ async function logEmail(req, email) { exports.emailBounce = async function (req, res, next) { try { const body = JSON.parse(req.body); - if (body.type === "SubscriptionConfirmation") { - logger.log("SNS-confirmation", "DEBUG", "api", null, { - message: body.message, - url: body.SubscribeUrl, - body: body, + if (body.type !== "Notification") { + logger.log("SNS-message", "DEBUG", "api", null, { + body: req.body, }); } if (body.Type === "Notification") {