From 8cc0a8d7b393d4b0365a06c45e4b5ff7ca6d8375 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Mon, 15 Mar 2021 12:46:14 +1100 Subject: [PATCH] Log env --- src/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4530a88..36356c6 100644 --- a/src/index.js +++ b/src/index.js @@ -11,6 +11,12 @@ import * as serviceWorker from "./serviceWorker"; import "./index.css"; +console.log( + "env", + process.env, + "logging", + process.env.REACT_APP_LOGGING === "true" +); if (process.env.REACT_APP_LOGGING === "true") { Sentry.init({ dsn: @@ -28,7 +34,9 @@ if (process.env.REACT_APP_LOGGING === "true") { "XDR encoding failure", "Assertion failed: Input argument is not an HTMLInputElement", "Extension context invalidated", - new RegExp("([InvalidStateError:\\s]*Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing([.]*[\\s]*))+"), + new RegExp( + "([InvalidStateError:\\s]*Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing([.]*[\\s]*))+" + ), // Random plugins/extensions "top.GLOBALS", // See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error.html