1.3.7-4 - Prod Build - Updated sentry logging.
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user