From 1eaa2ef7ca02e1534ba5f1baefdc794f675065e0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 12 May 2025 00:14:15 +0200 Subject: Add fake mailer logging for debug mode. --- server.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server.js b/server.js index db49c8c..7165a9b 100644 --- a/server.js +++ b/server.js @@ -139,6 +139,13 @@ if (process.env.MAIL_HOST && process.env.MAIL_PORT && process.env.MAIL_FROM) { console.log("Mail notifications enabled: ", mailer.options) } else { console.log("Mail notifications disabled.") + if (DEBUG) { + mailer = { + sendMail(mail) { + console.log("MAIL (DEBUG):", mail) + } + } + } } /* -- cgit v1.2.3