Adjustments to the retry interval

The monitor logic for when to use "retryInterval" is updated. Also removed some texts when they are no longer needed.
This commit is contained in:
No0Vad 2021-09-15 00:59:06 +02:00
parent fc9b4617ca
commit 1300448bed
3 changed files with 2 additions and 8 deletions

View file

@ -299,7 +299,7 @@ class Monitor extends BeanModel {
if (bean.status === UP) {
console.info(`Monitor #${this.id} '${this.name}': Successful Response: ${bean.ping} ms | Interval: ${beatInterval} seconds | Type: ${this.type}`)
} else if (bean.status === PENDING) {
if (this.retryInterval > 0) {
if (this.retryInterval !== this.interval) {
beatInterval = this.retryInterval;
}
console.warn(`Monitor #${this.id} '${this.name}': Pending: ${bean.msg} | Max retries: ${this.maxretries} | Retry: ${retries} | Retry Interval: ${beatInterval} seconds | Type: ${this.type}`)