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(); super();
logItem.set("id", this.id); logItem.set("id", this.id);
logItem.set("sessionId", this.options.sessionId);
this._state = newCall ? GroupCallState.Fledgling : GroupCallState.Created; this._state = newCall ? GroupCallState.Fledgling : GroupCallState.Created;
this._memberOptions = Object.assign({}, options, { this._memberOptions = Object.assign({}, options, {
confId: this.id, confId: this.id,
@ -244,7 +245,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
this._members.remove(memberKey); this._members.remove(memberKey);
member = undefined; 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.set("add", true);
log.refDetached(logItem); log.refDetached(logItem);
member = new Member( member = new Member(

View file

@ -60,7 +60,9 @@ export class Member {
private callDeviceMembership: CallDeviceMembership, private callDeviceMembership: CallDeviceMembership,
private readonly options: Options, private readonly options: Options,
private readonly logItem: ILogItem, private readonly logItem: ILogItem,
) {} ) {
this.logItem.set("sessionId", this.sessionId);
}
get remoteMedia(): RemoteMedia | undefined { get remoteMedia(): RemoteMedia | undefined {
return this.peerCall?.remoteMedia; return this.peerCall?.remoteMedia;