add sentry error to integ

This commit is contained in:
Maidul Islam
2023-07-21 17:45:27 -04:00
parent edb201e11f
commit 3d93c6a995

View File

@ -9,6 +9,7 @@ import {
INTEGRATION_VERCEL,
} from "../variables";
import { UnauthorizedRequestError } from "../utils/errors";
import * as Sentry from "@sentry/node";
interface Update {
workspace: string;
@ -158,6 +159,7 @@ export const syncIntegrationsHelper = async ({
});
}
} catch (err) {
Sentry.captureException(err);
console.log(`syncIntegrationsHelper: failed with [workspaceId=${workspaceId}] [environment=${environment}]`, err) // eslint-disable-line no-use-before-define
throw err
}