Skip to content

Commit cb41e65

Browse files
committed
fix: enhance logging for missing original messages during updates
1 parent 52a8d9e commit cb41e65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,9 @@ export class BaileysStartupService extends ChannelStartupService {
16741674
}
16751675

16761676
if (!findMessage?.id) {
1677-
this.logger.warn(`Original message not found for update. Skipping. Key: ${JSON.stringify(key)}`);
1677+
this.logger.verbose(
1678+
`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)}`,
1679+
);
16781680
continue;
16791681
}
16801682
if (findMessage?.key?.remoteJid && findMessage.key.remoteJid !== key.remoteJid) {

0 commit comments

Comments
 (0)