(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
This commit is contained in:
Dmitry S 2021-07-09 09:41:19 -04:00
parent 0e0528a2cc
commit f079ffdcb3

View File

@ -484,7 +484,7 @@ export class ActiveDoc extends EventEmitter {
// If no more clients, schedule a shutdown. // If no more clients, schedule a shutdown.
if (this.docClients.clientCount() === 0) { 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(); this._inactivityTimer.enable();
} }
} }