···517517 const activeThreshold = this.lastActivityAt.add(checkActiveFor, 's');
518518 const inactiveFor = dayjs.duration(Math.abs(activeThreshold.diff(dayjs(), 'millisecond'))).humanize(false);
519519 if (activeThreshold.isBefore(dayjs())) {
520520+ let intervalStr: string = formatNumber(maxInterval);
520521 checksOverThreshold++;
521522 if(sleepTime < maxInterval) {
522523 const checkVal = Math.min(checksOverThreshold, 1000);
523524 const backoff = Math.round(Math.max(Math.min(Math.min(checkVal, 1000) * 2 * (1.1 * checkVal), maxBackoff), 5));
525525+ intervalStr = `(${interval} + ${backoff})`;
524526 sleepTime = interval + backoff;
525525- this.logger.debug(`Last activity was at ${this.lastActivityAt.format()} which is ${inactiveFor} outside of active polling period of (last activity + ${checkActiveFor} seconds). Will check again in interval ${interval} + ${backoff} seconds.`);
526526- } else {
527527- this.logger.debug(`Last activity was at ${this.lastActivityAt.format()} which is ${inactiveFor} outside of active polling period of (last activity + ${checkActiveFor} seconds). Will check again in max interval ${maxInterval} seconds.`);
528527 }
528528+ this.logger.debug(`Last activity ${this.lastActivityAt.format()} is ${inactiveFor} outside of polling period (last activity + ${checkActiveFor}s) | Next check interval: ${intervalStr}s`);
529529 } else {
530530- this.logger.debug(`Last activity was at ${this.lastActivityAt.format()}. Will check again in interval ${formatNumber(sleepTime)} seconds.`);
530530+ this.logger.debug(`Last activity was at ${this.lastActivityAt.format()} | Next check interval: ${formatNumber(sleepTime)}s`);
531531 }
532532-533533- this.logger.verbose(`Sleeping for ${formatNumber(sleepTime)}s`);
534532 const wakeUpAt = pollFrom.add(sleepTime, 'seconds');
535533 while(!this.shouldStopPolling() && dayjs().isBefore(wakeUpAt)) {
536534 // check for polling status every half second and wait till wake up time