diff --git a/src/utils/rest-fetcher.ts b/src/utils/rest-fetcher.ts index 17c4077f..06509aa0 100644 --- a/src/utils/rest-fetcher.ts +++ b/src/utils/rest-fetcher.ts @@ -1,4 +1,5 @@ import logger from "./logger" +import * as Sentry from "@sentry/nextjs" const fetcher = async (url: string, params: Record) => { try { @@ -9,7 +10,8 @@ const fetcher = async (url: string, params: Record) => { } return response } catch (error) { - logger.error("Error attempting to fetch", error) + logger.error(error, "Error attempting to fetch") + Sentry.captureException(error) } }