1.3.7-4 - Prod Build - Updated sentry logging.

This commit is contained in:
Patrick Fic
2022-06-24 13:42:13 -07:00
parent 8e0e041942
commit 33cc7cca0a
9 changed files with 130 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import { INSERT_NEW_DOCUMENT } from "../graphql/documents.queries";
import { axiosAuthInterceptorId } from "./CleanAxios";
import * as MediaLibrary from "expo-media-library";
import { gql } from "@apollo/client";
import * as Sentry from "sentry-expo";
//Context: currentUserEmail, bodyshop, jobid, invoiceid
@@ -70,6 +71,8 @@ export const uploadToCloudinary = async (
});
} catch (error) {
console.log("ERROR GETTING SIGNED URL", error);
Sentry.Native.captureException(error);
return { success: false, error: error };
}
@@ -117,6 +120,8 @@ export const uploadToCloudinary = async (
);
} catch (error) {
console.log("CLOUDINARY error", error.response, cloudinaryUploadResponse);
Sentry.Native.captureException(error);
if (onError) onError(error.message);
return { success: false, error: error };
}