(core) Fix a log message about when a doc will close to be more accurate

Test Plan: Checked manually for a long-opening document that the time reported is correct.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2906
pull/9/head
Dmitry S 3 years ago
parent 0e0528a2cc
commit f079ffdcb3

@ -484,7 +484,7 @@ export class ActiveDoc extends EventEmitter {
// If no more clients, schedule a shutdown.
if (this.docClients.clientCount() === 0) {
this.logInfo(docSession, "will self-close in %ds", Deps.ACTIVEDOC_TIMEOUT);
this.logInfo(docSession, "will self-close in %d ms", this._inactivityTimer.getDelay());
this._inactivityTimer.enable();
}
}

Loading…
Cancel
Save