Skip to content

Commit

Permalink
Reduce some log spam from MatrixRTCSession.callMembershipsForRoom
Browse files Browse the repository at this point in the history
This gets logged very frequently - including once for each room at startup -
and it's filling the logs.
  • Loading branch information
richvdh committed Oct 19, 2023
1 parent 7501e28 commit bce02cc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/matrixrtc/MatrixRTCSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
}

callMemberships.sort((a, b) => a.createdTs() - b.createdTs());
logger.debug(
"Call memberships, in order: ",
callMemberships.map((m) => [m.createdTs(), m.sender]),
);
if (callMemberships.length > 1) {
logger.debug(
`Call memberships in room ${room.roomId}, in order: `,
callMemberships.map((m) => [m.createdTs(), m.sender]),
);
}

return callMemberships;
}
Expand Down

0 comments on commit bce02cc

Please sign in to comment.