better debugs
This commit is contained in:
+4
-2
@@ -796,6 +796,7 @@ async function restartMail() {
|
||||
async function startMail(existingInfra) {
|
||||
assert.strictEqual(typeof existingInfra, 'object');
|
||||
|
||||
debug('startMail: starting');
|
||||
await restartMail();
|
||||
}
|
||||
|
||||
@@ -807,6 +808,7 @@ async function restartMailIfActivated() {
|
||||
return; // not provisioned yet, do not restart container after dns setup
|
||||
}
|
||||
|
||||
debug('restartMailIfActivated: restarting on activated');
|
||||
await restartMail();
|
||||
}
|
||||
|
||||
@@ -1009,7 +1011,7 @@ async function onDomainAdded(domain) {
|
||||
|
||||
if (!settings.mailFqdn()) return; // mail domain is not set yet (when provisioning)
|
||||
|
||||
debug('onDomainAdded: configuring mail for added domain');
|
||||
debug(`onDomainAdded: configuring mail for added domain ${domain}`);
|
||||
await upsertDnsRecords(domain, settings.mailFqdn());
|
||||
await restartMailIfActivated();
|
||||
}
|
||||
@@ -1017,7 +1019,7 @@ async function onDomainAdded(domain) {
|
||||
async function onDomainRemoved(domain) {
|
||||
assert.strictEqual(typeof domain, 'string');
|
||||
|
||||
debug('onDomainRemoved: configuring mail for removed domain');
|
||||
debug(`onDomainRemoved: configuring mail for removed domain ${domain}`);
|
||||
await restartMail();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user