From bce02cc0eb18605f8ff78397477f9f10155d5362 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 19 Oct 2023 17:39:51 +0100 Subject: [PATCH] Reduce some log spam from `MatrixRTCSession.callMembershipsForRoom` This gets logged very frequently - including once for each room at startup - and it's filling the logs. --- src/matrixrtc/MatrixRTCSession.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/matrixrtc/MatrixRTCSession.ts b/src/matrixrtc/MatrixRTCSession.ts index ff7128435d7..15c55f69f33 100644 --- a/src/matrixrtc/MatrixRTCSession.ts +++ b/src/matrixrtc/MatrixRTCSession.ts @@ -118,10 +118,12 @@ export class MatrixRTCSession extends TypedEventEmitter 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; }