Remove Sentry, part-try-catch from sync Checkly

This commit is contained in:
Tuan Dang
2023-06-08 11:04:34 +01:00
parent a8e71e8170
commit cd837b07aa
-10
View File
@@ -201,10 +201,6 @@ const syncSecrets = async ({
});
break;
}
} catch (err) {
Sentry.setUser(null);
Sentry.captureException(err);
}
};
/**
@@ -1686,7 +1682,6 @@ const syncSecretsCheckly = async ({
secrets: any;
accessToken: string;
}) => {
try {
// get secrets from travis-ci
const getSecretsRes = (
await standardRequest.get(
@@ -1761,11 +1756,6 @@ const syncSecretsCheckly = async ({
);
}
}
} catch (err) {
Sentry.setUser(null);
Sentry.captureException(err);
throw new Error("Failed to sync secrets to Checkly");
}
};