From c1755ff85b22dbd3503fd1dcae64eb9a7d9b3b79 Mon Sep 17 00:00:00 2001 From: Eric Allam Date: Wed, 2 Aug 2023 11:53:42 +0100 Subject: [PATCH] Removed error logging from the stripe integration --- .changeset/thirty-phones-smell.md | 5 +++++ integrations/stripe/src/tasks.ts | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 .changeset/thirty-phones-smell.md diff --git a/.changeset/thirty-phones-smell.md b/.changeset/thirty-phones-smell.md new file mode 100644 index 000000000..e7455cbc9 --- /dev/null +++ b/.changeset/thirty-phones-smell.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/stripe": patch +--- + +Removed error logging diff --git a/integrations/stripe/src/tasks.ts b/integrations/stripe/src/tasks.ts index 1c5cb3bdd..be4e0cddb 100644 --- a/integrations/stripe/src/tasks.ts +++ b/integrations/stripe/src/tasks.ts @@ -23,13 +23,6 @@ import { omit } from "./utils"; export const createCharge: AuthenticatedTask = { - onError: (error) => { - if (error instanceof Stripe.errors.StripeError) { - console.log("Stripe error", error); - } - - throw error; - }, run: async (params, client, task) => { const response = await client.charges.create(params, { idempotencyKey: task.idempotencyKey,