From ba818ef256086018d4b93ad18fec048ed223b4c1 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Sat, 14 Feb 2026 13:47:15 +0100 Subject: [PATCH] fix(clock-bot): improve room topic error logging Co-Authored-By: Claude Opus 4.5 --- services/matrix-clock-bot/src/bot/matrix.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/matrix-clock-bot/src/bot/matrix.service.ts b/services/matrix-clock-bot/src/bot/matrix.service.ts index 66355a430..a4fbbd9ae 100644 --- a/services/matrix-clock-bot/src/bot/matrix.service.ts +++ b/services/matrix-clock-bot/src/bot/matrix.service.ts @@ -297,8 +297,10 @@ export class MatrixService extends BaseMatrixService implements OnModuleDestroy try { const client = this.getClient(); await client.sendStateEvent(roomId, 'm.room.topic', '', { topic }); - } catch (error) { - this.logger.warn(`Failed to set room topic for ${roomId}: ${error}`); + this.logger.log(`Room topic updated: ${topic}`); + } catch (error: unknown) { + const errorMessage = error instanceof Error ? error.message : String(error); + this.logger.error(`Failed to set room topic for ${roomId}: ${errorMessage}`); } }