From 9938071e1cdc82e53c007ea99578334f5cd6f123 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 29 Apr 2022 14:34:03 +0100 Subject: [PATCH] more sessionId logging --- src/matrix/calls/group/GroupCall.ts | 3 ++- src/matrix/calls/group/Member.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/matrix/calls/group/GroupCall.ts b/src/matrix/calls/group/GroupCall.ts index 99e907fe..707188f7 100644 --- a/src/matrix/calls/group/GroupCall.ts +++ b/src/matrix/calls/group/GroupCall.ts @@ -77,6 +77,7 @@ export class GroupCall extends EventEmitter<{change: never}> { ) { super(); logItem.set("id", this.id); + logItem.set("sessionId", this.options.sessionId); this._state = newCall ? GroupCallState.Fledgling : GroupCallState.Created; this._memberOptions = Object.assign({}, options, { confId: this.id, @@ -244,7 +245,7 @@ export class GroupCall extends EventEmitter<{change: never}> { this._members.remove(memberKey); member = undefined; } - const logItem = this.logItem.child({l: "member", id: memberKey, sessionId: device.session_id}); + const logItem = this.logItem.child({l: "member", id: memberKey}); log.set("add", true); log.refDetached(logItem); member = new Member( diff --git a/src/matrix/calls/group/Member.ts b/src/matrix/calls/group/Member.ts index 314734d8..28190967 100644 --- a/src/matrix/calls/group/Member.ts +++ b/src/matrix/calls/group/Member.ts @@ -60,7 +60,9 @@ export class Member { private callDeviceMembership: CallDeviceMembership, private readonly options: Options, private readonly logItem: ILogItem, - ) {} + ) { + this.logItem.set("sessionId", this.sessionId); + } get remoteMedia(): RemoteMedia | undefined { return this.peerCall?.remoteMedia;