[fix] remove brackets from e-mail title (otherwise Gmail merge with old title)

This commit is contained in:
2020-05-09 12:12:59 +02:00
parent 46bb98f705
commit ee9e729718
5 changed files with 15 additions and 15 deletions

View File

@@ -19,8 +19,8 @@ export function bmaWatcher(conf: Conf) {
address: bmaServer.address + URL_PATH, address: bmaServer.address + URL_PATH,
frequency: bmaServer.frequency frequency: bmaServer.frequency
}, },
() => `[OK] BMA of ${bmaServer.address}`, () => `State OK BMA of ${bmaServer.address}`,
() => `[FAILURE] BMA of ${bmaServer.address}`, () => `State FAILURE BMA of ${bmaServer.address}`,
() => `[RECOVERED] BMA of ${bmaServer.address}`) () => `State RECOVERED BMA of ${bmaServer.address}`)
} }
} }

View File

@@ -37,9 +37,9 @@ export function headWatcher(conf: Conf) {
address: confHead.address + URL_PATH, address: confHead.address + URL_PATH,
frequency: confHead.frequency frequency: confHead.frequency
}, },
() => `[OK] HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`, () => `State OK HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`,
() => `[FAILURE] HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`, () => `State FAILURE HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`,
() => `[RECOVERED] HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`) () => `State RECOVERED HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`)
} }
} }

View File

@@ -14,8 +14,8 @@ export function dprobeHeartbeat(conf: Conf) {
} }
return UrlWatcherResult.ok() return UrlWatcherResult.ok()
})(dconf, })(dconf,
() => `[OK] hearbeat is up-to-date`, () => `State OK hearbeat is up-to-date`,
() => `[FAILURE] hearbeat`, () => `State FAILURE hearbeat`,
() => `[RECOVERED] hearbeat`) () => `State RECOVERED hearbeat`)
} }
} }

View File

@@ -22,9 +22,9 @@ export function jsonWatcher(conf: Conf) {
address: confWWMeta.address + URL_PATH, address: confWWMeta.address + URL_PATH,
frequency: confWWMeta.frequency frequency: confWWMeta.frequency
}, },
() => `[OK] WWMeta.json is up-to-date`, () => `State OK WWMeta.json is up-to-date`,
() => `[FAILURE] WWMeta.json`, () => `State FAILURE WWMeta.json`,
() => `[RECOVERED] WWMeta.json`) () => `State RECOVERED WWMeta.json`)
} }
} }

View File

@@ -44,16 +44,16 @@ export function ws2pWatcher(conf: Conf) {
conf.waitingDelay, conf.waitingDelay,
conf.recallDelay, conf.recallDelay,
mail.onEstablished(conf, target, `[OK] WS2P on ${wserver.address}`), mail.onEstablished(conf, target, `State OK WS2P on ${wserver.address}`),
// When a disconnection is detected // When a disconnection is detected
mail.onDisconnect(conf, target, `[FAILURE] WS2P on ${wserver.address}`), mail.onDisconnect(conf, target, `State FAILURE WS2P on ${wserver.address}`),
async () => { async () => {
console.log('Trying to connect to %s', target) console.log('Trying to connect to %s', target)
}, },
mail.onRestartSuccess(conf, target, `[RECOVERED] WS2P on ${wserver.address}`), mail.onRestartSuccess(conf, target, `State RECOVERED WS2P on ${wserver.address}`),
) )
} }