diff --git a/whatsapp-router/src/index.ts b/whatsapp-router/src/index.ts index 1490b61..bdf6295 100644 --- a/whatsapp-router/src/index.ts +++ b/whatsapp-router/src/index.ts @@ -28,7 +28,7 @@ async function waitForGateway() { log('info', '🟢 nucleo-whatsapp ready'); return; } catch { - log('warn', `Gateway not responding (attempt ${i}/${config.MAX_ATTEMPTS})…`); + log('warn', `Gateway not responding`,' connecting to: ', openWaUrl, ` (attempt ${i}/${config.MAX_ATTEMPTS})…`); await new Promise(r => setTimeout(r, config.RETRY_MS)); } } @@ -111,7 +111,7 @@ async function registerWebhook() { app.use(express.json()); app.post('/webhook', async (req: express.Request, res: express.Response) => { - log('info', 'webhook received'); + log('info', 'webhook received', req.body); const { message, text, from } = req.body as { message?: WhatsAppMessage; text?: string; from?: string }; const incoming = message || text;