Skip to content

Commit 61b2674

Browse files
committed
Minor debug fix
1 parent 1a221fd commit 61b2674

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/health-check.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ class HealthCheck {
286286
service.config.interval -
287287
Number(process.hrtime.bigint() - startTime) / 1000000;
288288

289-
log.debug('tout: ' + (tout > 0 ? tout : 0));
289+
if (tout <= 0) {
290+
log.debug(service.name + ' tout: ' + (tout > 0 ? tout : 0));
291+
}
292+
290293
this.services[service.name]._sTimeoutHandler = setTimeout(
291294
async () => {
292295
this._runCheck(service);

0 commit comments

Comments
 (0)