From 97264cd84956392f48272b317ff928d1215e52de Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Sat, 14 Feb 2026 14:03:04 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(clock-bot):=20add=20detail?= =?UTF-8?q?ed=20topic=20update=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/matrix-clock-bot/src/bot/matrix.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/matrix-clock-bot/src/bot/matrix.service.ts b/services/matrix-clock-bot/src/bot/matrix.service.ts index 960c34687..ca7e1997f 100644 --- a/services/matrix-clock-bot/src/bot/matrix.service.ts +++ b/services/matrix-clock-bot/src/bot/matrix.service.ts @@ -296,7 +296,7 @@ export class MatrixService extends BaseMatrixService implements OnModuleDestroy private async setRoomTopic(roomId: string, topic: string): Promise { try { const client = this.getClient(); - this.logger.debug(`Attempting to set room topic for ${roomId}: ${topic}`); + this.logger.log(`Attempting to set room topic for ${roomId}: ${topic}`); await client.sendStateEvent(roomId, 'm.room.topic', '', { topic }); this.logger.log(`Room topic updated: ${topic}`); } catch (error: unknown) { @@ -344,10 +344,13 @@ export class MatrixService extends BaseMatrixService implements OnModuleDestroy label: string | null, status: 'running' | 'paused' ): Promise { + this.logger.log(`updateRoomTopicWithTimer called: room=${roomId}, timer=${timerId}, status=${status}`); + // Save original topic if not already saved for this room if (!this.originalRoomTopics.has(roomId)) { const originalTopic = await this.getRoomTopic(roomId); this.originalRoomTopics.set(roomId, { originalTopic, timerId }); + this.logger.log(`Saved original topic: "${originalTopic}"`); } // Update topic with timer status