(core) Include altSessionId in logs

Summary: Adds altSessionId to log output.

Test Plan: Tested manually.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3355
This commit is contained in:
George Gevoian
2022-04-08 11:00:43 -07:00
parent bf8769bc42
commit 4c5de16e2d
8 changed files with 31 additions and 11 deletions

View File

@@ -243,6 +243,7 @@ export class Sharing {
parentActionHash: null, // Gets set below by _actionHistory.recordNext...
};
const altSessionId = client?.getAltSessionId();
const logMeta = {
actionNum,
linkId: info.linkId,
@@ -250,6 +251,7 @@ export class Sharing {
numDocActions: localActionBundle.stored.length,
numRows: localActionBundle.stored.reduce((n, env) => n + getNumRows(env[1]), 0),
author: info.user,
...(altSessionId ? {session: altSessionId}: {}),
};
this._log.rawLog('debug', docSession, '_doApplyUserActions', logMeta);
if (LOG_ACTION_BUNDLE) {