From cb41e65e29ee549adb23c429f1132c3c559d2ed1 Mon Sep 17 00:00:00 2001 From: Vitordotpy Date: Tue, 16 Dec 2025 11:32:53 -0300 Subject: [PATCH] fix: enhance logging for missing original messages during updates --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index fc9b0b63..cc0acdf8 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1674,7 +1674,9 @@ export class BaileysStartupService extends ChannelStartupService { } if (!findMessage?.id) { - this.logger.warn(`Original message not found for update. Skipping. Key: ${JSON.stringify(key)}`); + this.logger.verbose( + `Original message not found for update after ${maxRetries} retries. Skipping. This is expected for protocol messages or ephemeral events not saved to the database. Key: ${JSON.stringify(key)}`, + ); continue; } if (findMessage?.key?.remoteJid && findMessage.key.remoteJid !== key.remoteJid) {