Skip to content

Commit

Permalink
Fix: Use retryInterval when a monitor is DOWN (#4476)
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jun 3, 2024
2 parents a00b4ed + 81e465f commit 10ebdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,6 @@ class Monitor extends BeanModel {
retries = 0;

} catch (error) {

if (error?.name === "CanceledError") {
bean.msg = `timeout by AbortSignal (${this.timeout}s)`;
} else {
Expand Down Expand Up @@ -970,6 +969,7 @@ class Monitor extends BeanModel {
} else if (bean.status === MAINTENANCE) {
log.warn("monitor", `Monitor #${this.id} '${this.name}': Under Maintenance | Type: ${this.type}`);
} else {
beatInterval = this.retryInterval;
log.warn("monitor", `Monitor #${this.id} '${this.name}': Failing: ${bean.msg} | Interval: ${beatInterval} seconds | Type: ${this.type} | Down Count: ${bean.downCount} | Resend Interval: ${this.resendInterval}`);
}

Expand Down

0 comments on commit 10ebdca

Please sign in to comment.