fix: add detailed webhook error logging
This commit is contained in:
@@ -493,7 +493,13 @@ export async function initBot(config, api, tools, skills, agents) {
|
|||||||
try {
|
try {
|
||||||
await bot.handleUpdate(req.body);
|
await bot.handleUpdate(req.body);
|
||||||
} catch (e) {
|
} 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()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user