From 2dd743d3a28df7c5dd28e3d4a44afdcd7ae02779 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 31 May 2025 18:24:51 +0000 Subject: [PATCH] chore: reduce log spam from mute/timeout broadcasts --- backend/src/data/loops/expiringMutesLoop.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/data/loops/expiringMutesLoop.ts b/backend/src/data/loops/expiringMutesLoop.ts index 5e163559..6f1a68ff 100644 --- a/backend/src/data/loops/expiringMutesLoop.ts +++ b/backend/src/data/loops/expiringMutesLoop.ts @@ -16,7 +16,7 @@ function muteToKey(mute: Mute) { return `${mute.guild_id}/${mute.user_id}`; } -async function broadcastExpiredMute(guildId: string, userId: string, tries = 0) { +async function broadcastExpiredMute(guildId: string, userId: string, tries = 0): Promise { const mute = await getMutesRepository().findMute(guildId, userId); if (!mute) { // Mute was already cleared @@ -27,7 +27,7 @@ async function broadcastExpiredMute(guildId: string, userId: string, tries = 0) return; } - console.log(`[EXPIRING MUTES LOOP] Broadcasting expired mute: ${mute.guild_id}/${mute.user_id}`); + // console.log(`[EXPIRING MUTES LOOP] Broadcasting expired mute: ${mute.guild_id}/${mute.user_id}`); if (!hasGuildEventListener(mute.guild_id, "expiredMute")) { // If there are no listeners registered for the server yet, try again in a bit if (tries < MAX_TRIES_PER_SERVER) { @@ -42,7 +42,7 @@ async function broadcastExpiredMute(guildId: string, userId: string, tries = 0) } function broadcastTimeoutMuteToRenew(mute: Mute, tries = 0) { - console.log(`[EXPIRING MUTES LOOP] Broadcasting timeout mute to renew: ${mute.guild_id}/${mute.user_id}`); + // console.log(`[EXPIRING MUTES LOOP] Broadcasting timeout mute to renew: ${mute.guild_id}/${mute.user_id}`); if (!hasGuildEventListener(mute.guild_id, "timeoutMuteToRenew")) { // If there are no listeners registered for the server yet, try again in a bit if (tries < MAX_TRIES_PER_SERVER) {