fix: add detailed webhook error logging

This commit is contained in:
admin
2026-05-05 13:28:55 +00:00
Unverified
parent d3bf90f985
commit bd26de66dd

View File

@@ -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()
});
}
});