(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

@@ -365,6 +365,8 @@ export class Client {
meta.age = Math.floor(moment.duration(moment().diff(this._firstLoginAt)).asDays());
}
if (this._org) { meta.org = this._org; }
const altSessionId = this.getAltSessionId();
if (altSessionId) { meta.altSessionId = altSessionId; }
meta.clientId = this.clientId; // identifies a client connection, essentially a websocket
meta.counter = this._counter; // identifies a GristWSConnection in the connected browser tab
return meta;