From 96d57a18ee872b723b3ccd06265f457ed2b9db50 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 23 Dec 2025 13:25:56 +0000 Subject: [PATCH] chore: demote reply chunk logs --- src/web/auto-reply.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/web/auto-reply.ts b/src/web/auto-reply.ts index 78f9b3745..517d6b399 100644 --- a/src/web/auto-reply.ts +++ b/src/web/auto-reply.ts @@ -588,14 +588,16 @@ async function deliverWebReply(params: { // Text-only replies if (mediaList.length === 0 && textChunks.length) { - for (const chunk of textChunks) { + const totalChunks = textChunks.length; + for (const [index, chunk] of textChunks.entries()) { + const chunkStarted = Date.now(); await sendWithRetry(() => msg.reply(chunk), "text"); - } - if (!skipLog) { - const durationMs = Date.now() - replyStarted; - whatsappOutboundLog.info( - `Sent reply to ${msg.from} (${durationMs.toFixed(0)}ms)`, - ); + if (!skipLog) { + const durationMs = Date.now() - chunkStarted; + whatsappOutboundLog.debug( + `Sent chunk ${index + 1}/${totalChunks} to ${msg.from} (${durationMs.toFixed(0)}ms)`, + ); + } } replyLogger.info( {