From b135aec5256969be6b3dcb7e36abd5cb46a0b208 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 23 Sep 2021 17:28:22 -0700 Subject: [PATCH] pass debug argument to background safe() calls --- src/mail.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mail.js b/src/mail.js index c211a9d17..7aa6b19d9 100644 --- a/src/mail.js +++ b/src/mail.js @@ -1018,7 +1018,7 @@ async function setMailFromValidation(domain, enabled) { await updateDomain(domain, { mailFromValidation: enabled }); - safe(restartMail()); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) + safe(restartMail(), { debug }); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) } async function setBanner(domain, banner) { @@ -1027,7 +1027,7 @@ async function setBanner(domain, banner) { await updateDomain(domain, { banner }); - safe(restartMail()); + safe(restartMail(), { debug }); } async function setCatchAllAddress(domain, addresses) { @@ -1036,7 +1036,7 @@ async function setCatchAllAddress(domain, addresses) { await updateDomain(domain, { catchAll: addresses }); - safe(restartMail()); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) + safe(restartMail(), { debug }); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) } async function setMailRelay(domain, relay, options) { @@ -1060,7 +1060,7 @@ async function setMailRelay(domain, relay, options) { await updateDomain(domain, { relay: relay }); - safe(restartMail()); + safe(restartMail(), { debug }); } async function setMailEnabled(domain, enabled, auditSource) { @@ -1070,7 +1070,7 @@ async function setMailEnabled(domain, enabled, auditSource) { await updateDomain(domain, { enabled: enabled }); - safe(restartMail()); + safe(restartMail(), { debug }); await eventlog.add(enabled ? eventlog.ACTION_MAIL_ENABLED : eventlog.ACTION_MAIL_DISABLED, auditSource, { domain }); }