From 7823b97c60f4022d850c0dde6f6f35a559d6f5e0 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Thu, 2 May 2024 20:38:37 -0500 Subject: [PATCH] logging --- backend/src/matrix-bot/outbound-queue.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/matrix-bot/outbound-queue.js b/backend/src/matrix-bot/outbound-queue.js index 494d9f5..90195b4 100644 --- a/backend/src/matrix-bot/outbound-queue.js +++ b/backend/src/matrix-bot/outbound-queue.js @@ -12,7 +12,10 @@ const setTargetRoomId = async (roomId) => { }; const processOutboundQueue = async ({ type, ...args }) => { - if (!targetRoomId) return; + if (!targetRoomId) { + console.log('targetRoomId not set, cannot deliver message'); + return; + } switch (type) { case 'MatrixEvent': { const { eventType, content, onSend } = args;