From bffce7fafe28e9f85570c65e4e47023c01f84ffa Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Wed, 27 Apr 2022 19:40:49 +0200 Subject: [PATCH] more logging --- src/matrix/calls/group/GroupCall.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/matrix/calls/group/GroupCall.ts b/src/matrix/calls/group/GroupCall.ts index 29be893d..fa7f4f9d 100644 --- a/src/matrix/calls/group/GroupCall.ts +++ b/src/matrix/calls/group/GroupCall.ts @@ -224,7 +224,7 @@ export class GroupCall extends EventEmitter<{change: never}> { for (const device of devices) { const deviceId = device.device_id; const memberKey = getMemberKey(userId, deviceId); - log.wrap({l: "update device member", id: memberKey}, log => { + log.wrap({l: "update device member", id: memberKey, sessionId: device.session_id}, log => { if (userId === this.options.ownUserId && deviceId === this.options.ownDeviceId) { if (this._state === GroupCallState.Joining) { log.set("update_own", true); @@ -348,7 +348,13 @@ export class GroupCall extends EventEmitter<{change: never}> { if (member && message.content.sender_session_id === member.sessionId) { member.handleDeviceMessage(message, syncLog); } else { - const item = this.logItem.log({l: "member not found, buffering", userId, deviceId, sessionId: message.content.sender_session_id}); + const item = this.logItem.log({ + l: "buffering to_device message, member not found", + userId, + deviceId, + sessionId: message.content.sender_session_id, + type: message.type + }); syncLog.refDetached(item); // we haven't received the m.call.member yet for this caller (or with this session id). // buffer the device messages or create the member/call as it should arrive in a moment