diff --git a/app/server/lib/ActiveDoc.ts b/app/server/lib/ActiveDoc.ts index 3feae3a6..295122d4 100644 --- a/app/server/lib/ActiveDoc.ts +++ b/app/server/lib/ActiveDoc.ts @@ -2380,7 +2380,11 @@ export class ActiveDoc extends EventEmitter { // took longer, scale it up proportionately. const closeTimeout = Math.max(loadMs, 1000) * Deps.ACTIVEDOC_TIMEOUT; this._inactivityTimer.setDelay(closeTimeout); - this._log.debug(docSession, `loaded in ${loadMs} ms, InactivityTimer set to ${closeTimeout} ms`); + log.rawDebug('ActiveDoc load timing', { + ...this.getLogMeta(docSession), + loadMs, + closeTimeout, + }); const docUsage = getDocSessionUsage(docSession); if (!docUsage) { // This looks be the first time this installation of Grist is touching diff --git a/app/server/lib/NSandbox.ts b/app/server/lib/NSandbox.ts index 84a94339..d57aacbe 100644 --- a/app/server/lib/NSandbox.ts +++ b/app/server/lib/NSandbox.ts @@ -312,7 +312,11 @@ export class NSandbox implements ISandbox { throw new sandboxUtil.SandboxError(e.message); } finally { if (this._logTimes) { - log.rawDebug(`Sandbox pyCall[${funcName}] took ${Date.now() - startTime} ms`, this._logMeta); + log.rawDebug('NSandbox pyCall', { + ...this._logMeta, + funcName, + loadMs: Date.now() - startTime, + }); } } }