add retry

This commit is contained in:
Simon Larsen 2023-09-21 12:53:20 +01:00
parent 0576199db8
commit d92d8c260b
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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 {

View File

@ -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();