pass debug argument to background safe() calls

This commit is contained in:
Girish Ramakrishnan
2021-09-23 17:28:22 -07:00
parent 1aa96f7f76
commit b135aec525

View File

@@ -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 });
}