From 61d6a7bb8558302a01a36e1fd58c69f927dffb98 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sat, 21 Nov 2020 16:08:26 +1100 Subject: [PATCH] Disabled sentry --- src/helpers/logging.js | 6 +++--- src/index.js | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/helpers/logging.js b/src/helpers/logging.js index a80ff82..4b06f97 100644 --- a/src/helpers/logging.js +++ b/src/helpers/logging.js @@ -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); + // } } diff --git a/src/index.js b/src/index.js index 65de3d1..7001e2a 100644 --- a/src/index.js +++ b/src/index.js @@ -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");