[fix] remove brackets from e-mail title (otherwise Gmail merge with old title)
This commit is contained in:
@@ -19,8 +19,8 @@ export function bmaWatcher(conf: Conf) {
|
||||
address: bmaServer.address + URL_PATH,
|
||||
frequency: bmaServer.frequency
|
||||
},
|
||||
() => `[OK] BMA of ${bmaServer.address}`,
|
||||
() => `[FAILURE] BMA of ${bmaServer.address}`,
|
||||
() => `[RECOVERED] BMA of ${bmaServer.address}`)
|
||||
() => `State OK BMA of ${bmaServer.address}`,
|
||||
() => `State FAILURE BMA of ${bmaServer.address}`,
|
||||
() => `State RECOVERED BMA of ${bmaServer.address}`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,9 +37,9 @@ export function headWatcher(conf: Conf) {
|
||||
address: confHead.address + URL_PATH,
|
||||
frequency: confHead.frequency
|
||||
},
|
||||
() => `[OK] HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`,
|
||||
() => `[FAILURE] HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`,
|
||||
() => `[RECOVERED] HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`)
|
||||
() => `State OK HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`,
|
||||
() => `State FAILURE HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`,
|
||||
() => `State RECOVERED HEADS of ${confHead.observedPubkey.substr(0, KEY_LENGTH)}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ export function dprobeHeartbeat(conf: Conf) {
|
||||
}
|
||||
return UrlWatcherResult.ok()
|
||||
})(dconf,
|
||||
() => `[OK] hearbeat is up-to-date`,
|
||||
() => `[FAILURE] hearbeat`,
|
||||
() => `[RECOVERED] hearbeat`)
|
||||
() => `State OK hearbeat is up-to-date`,
|
||||
() => `State FAILURE hearbeat`,
|
||||
() => `State RECOVERED hearbeat`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ export function jsonWatcher(conf: Conf) {
|
||||
address: confWWMeta.address + URL_PATH,
|
||||
frequency: confWWMeta.frequency
|
||||
},
|
||||
() => `[OK] WWMeta.json is up-to-date`,
|
||||
() => `[FAILURE] WWMeta.json`,
|
||||
() => `[RECOVERED] WWMeta.json`)
|
||||
() => `State OK WWMeta.json is up-to-date`,
|
||||
() => `State FAILURE WWMeta.json`,
|
||||
() => `State RECOVERED WWMeta.json`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,16 +44,16 @@ export function ws2pWatcher(conf: Conf) {
|
||||
conf.waitingDelay,
|
||||
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
|
||||
mail.onDisconnect(conf, target, `[FAILURE] WS2P on ${wserver.address}`),
|
||||
mail.onDisconnect(conf, target, `State FAILURE WS2P on ${wserver.address}`),
|
||||
|
||||
async () => {
|
||||
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}`),
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user