Skip to content

Commit

Permalink
Reduce some log spam from MatrixRTCSession.callMembershipsForRoom (#…
Browse files Browse the repository at this point in the history
…3812)

This gets logged very frequently - including once for each room at startup -
and it's filling the logs.
  • Loading branch information
richvdh authored Oct 20, 2023
1 parent 7501e28 commit c026495
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 c026495

Please sign in to comment.