From dea11845f541a46b2b2f226cdc6b926668973741 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 18 Feb 2021 13:07:32 +0100 Subject: [PATCH] log encrypted event count in session sync write --- src/matrix/DeviceMessageHandler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matrix/DeviceMessageHandler.js b/src/matrix/DeviceMessageHandler.js index a726ba90..5654f0b5 100644 --- a/src/matrix/DeviceMessageHandler.js +++ b/src/matrix/DeviceMessageHandler.js @@ -36,6 +36,7 @@ export class DeviceMessageHandler { */ async writeSync(toDeviceEvents, txn, log) { const encryptedEvents = toDeviceEvents.filter(e => e.type === "m.room.encrypted"); + log.set("encryptedCount", encryptedEvents.length); if (!encryptedEvents.length) { return false; }