Fix error logs in client unit tests from setTitle (#12967)

This commit is contained in:
Bart Enkelaar
2021-01-25 23:52:26 +01:00
committed by GitHub
parent 43fc390e28
commit a543531956
6 changed files with 5 additions and 110 deletions

View File

@@ -32,7 +32,6 @@ export async function handleWebhooks (options, stripeInc) {
try {
// Verify the event by fetching it from Stripe
event = stripeApi.webhooks.constructEvent(body, headers['stripe-signature'], endpointSecret);
console.log(event);
} catch (err) {
logger.error(new Error('Error verifying Stripe webhook'), { err });
throw new BadRequest(`Webhook Error: ${err.message}`);