Skip to content

Commit

Permalink
Minor debug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Phara0h committed Nov 17, 2020
1 parent 1a221fd commit 61b2674
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/health-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 61b2674

Please sign in to comment.