more sessionId logging

This commit is contained in:
Bruno Windels 2022-04-29 14:34:03 +01:00
parent bb92d2e30d
commit 9938071e1c
2 changed files with 5 additions and 2 deletions

View File

@ -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(

View File

@ -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;