From d92d8c260b37e727b5579c65e4e6f0fbc79cb056 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 21 Sep 2023 12:53:20 +0100 Subject: [PATCH] add retry --- Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts | 2 +- Probe/Utils/Monitors/MonitorTypes/PingMonitor.ts | 2 +- Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts b/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts index b42b213500..f4d40795da 100644 --- a/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts +++ b/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts @@ -102,7 +102,7 @@ export default class ApiMonitor { try { logger.info( - `API Monitor - Pinging ${options.monitorId?.toString()} ${requestType} ${url.toString()}` + `API Monitor - Pinging ${options.monitorId?.toString()} ${requestType} ${url.toString()} - Retry: ${options.currentRetryCount}` ); let startTime: [number, number] = process.hrtime(); diff --git a/Probe/Utils/Monitors/MonitorTypes/PingMonitor.ts b/Probe/Utils/Monitors/MonitorTypes/PingMonitor.ts index d72f43c38b..89e06a0a67 100644 --- a/Probe/Utils/Monitors/MonitorTypes/PingMonitor.ts +++ b/Probe/Utils/Monitors/MonitorTypes/PingMonitor.ts @@ -85,7 +85,7 @@ export default class PingMonitor { } logger.info( - `Pinging host: ${pingOptions?.monitorId?.toString()} ${hostAddress}` + `Pinging host: ${pingOptions?.monitorId?.toString()} ${hostAddress} - Retry: ${pingOptions?.currentRetryCount}` ); try { diff --git a/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts b/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts index 9a64c9f831..2a62c25b4a 100644 --- a/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts +++ b/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts @@ -104,7 +104,7 @@ export default class WebsiteMonitor { try { logger.info( - `Website Monitor - Pinging ${options.monitorId?.toString()} ${requestType} ${url.toString()}` + `Website Monitor - Pinging ${options.monitorId?.toString()} ${requestType} ${url.toString()} - Retry: ${options.currentRetryCount}` ); let startTime: [number, number] = process.hrtime();