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

@@ -2,6 +2,7 @@ import axios from "axios";
import { store } from "../redux/store";
import mime from "mime";
import * as MediaLibrary from "expo-media-library";
import * as Sentry from "sentry-expo";
axios.interceptors.request.use(
function (config) {
@@ -94,11 +95,15 @@ export const handleLocalUpload = async ({
});
}
} catch (error) {
Sentry.Native.captureException(error);
console.log("Error uploading documents:", error.message);
onError && onError({ error: error.message });
}
} catch (error) {
console.log("Uncaught error", error);
Sentry.Native.captureException(error);
onError && onError({ error: error.message });
}
};