add more logging

This commit is contained in:
Matteo Pagliazzi
2017-03-25 17:33:35 +01:00
parent 625077fc1a
commit 6e0341a4ff

View File

@@ -91,7 +91,13 @@ api.handleWebhooks = {
method: 'POST',
url: '/stripe/webhooks',
async handler (req, res) {
await stripePayments.handleWebhooks({requestBody: req.body});
console.log('start handling webhook');
try {
await stripePayments.handleWebhooks({requestBody: req.body});
} catch (err) {
console.log(err);
}
return res.respond(200, {});
},