Disabled sentry

This commit is contained in:
Mitchell McCaffrey 2020-11-21 16:08:26 +11:00
parent 4fee6d278a
commit 61d6a7bb85
2 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@ import { captureException } from "@sentry/react";
export function logError(error) {
console.error(error);
if (process.env.NODE_ENV === "production") {
captureException(error);
}
// if (process.env.NODE_ENV === "production") {
// captureException(error);
// }
}

View File

@ -11,15 +11,15 @@ import * as serviceWorker from "./serviceWorker";
import "./index.css";
if (process.env.NODE_ENV === "production") {
Sentry.init({
dsn:
"https://bc1e2edfe7ca453f8e7357a48693979e@o467475.ingest.sentry.io/5493956",
release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION,
// Ignore resize error as it is triggered by going fullscreen on slower computers
ignoreErrors: ["ResizeObserver loop limit exceeded"],
});
}
// if (process.env.NODE_ENV === "production") {
// Sentry.init({
// dsn:
// "https://bc1e2edfe7ca453f8e7357a48693979e@o467475.ingest.sentry.io/5493956",
// release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION,
// // Ignore resize error as it is triggered by going fullscreen on slower computers
// ignoreErrors: ["ResizeObserver loop limit exceeded"],
// });
// }
Modal.setAppElement("#root");