also log payload when receiving to_device call message, help debug with thirdroom

This commit is contained in:
Bruno Windels 2022-04-29 14:59:19 +01:00
parent c1c08e9eb0
commit 1a0b11ff7e

View file

@ -300,7 +300,7 @@ export class PeerCall implements IDisposable {
} }
handleIncomingSignallingMessage<B extends MCallBase>(message: SignallingMessage<B>, partyId: PartyId): Promise<void> { handleIncomingSignallingMessage<B extends MCallBase>(message: SignallingMessage<B>, partyId: PartyId): Promise<void> {
return this.logItem.wrap({l: "receive", id: message.type, callId: message.content.call_id}, async log => { return this.logItem.wrap({l: "receive", id: message.type, callId: message.content.call_id, payload: message}, async log => {
switch (message.type) { switch (message.type) {
case EventType.Invite: case EventType.Invite:
if (this.callId !== message.content.call_id) { if (this.callId !== message.content.call_id) {