From 61b267410b7dfcff222ff841b594a659f05ddf5e Mon Sep 17 00:00:00 2001 From: Phara0h Date: Tue, 17 Nov 2020 13:42:09 -0500 Subject: [PATCH] Minor debug fix --- src/health-check.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/health-check.js b/src/health-check.js index 6e614fa..39fc5a2 100644 --- a/src/health-check.js +++ b/src/health-check.js @@ -286,7 +286,10 @@ class HealthCheck { service.config.interval - Number(process.hrtime.bigint() - startTime) / 1000000; - log.debug('tout: ' + (tout > 0 ? tout : 0)); + if (tout <= 0) { + log.debug(service.name + ' tout: ' + (tout > 0 ? tout : 0)); + } + this.services[service.name]._sTimeoutHandler = setTimeout( async () => { this._runCheck(service);