diff --git a/src/bot/index.js b/src/bot/index.js index bfb68b63..063a7816 100644 --- a/src/bot/index.js +++ b/src/bot/index.js @@ -493,7 +493,13 @@ export async function initBot(config, api, tools, skills, agents) { try { await bot.handleUpdate(req.body); } catch (e) { - logger.error('Webhook update error:', e.message); + logger.error('Webhook update error:', { + message: e.message, + name: e.name, + stack: e.stack, + body: req.body?.update_id, + full: e.toString() + }); } });