mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
log console.error to sentry (#1243)
* log console.error to sentry * fix
This commit is contained in:
parent
13a2253cdc
commit
88cec2df5e
3 changed files with 17 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import * as Sentry from "@sentry/browser";
|
||||
import * as SentryIntegrations from "@sentry/integrations";
|
||||
import { TopErrorBoundary } from "./components/TopErrorBoundary";
|
||||
import { IsMobileProvider } from "./is-mobile";
|
||||
import { App } from "./components/App";
|
||||
|
@ -22,6 +23,11 @@ Sentry.init({
|
|||
: undefined,
|
||||
environment: onlineEnv ? SentyEnvHostnameMap[onlineEnv] : undefined,
|
||||
release: process.env.REACT_APP_GIT_SHA,
|
||||
integrations: [
|
||||
new SentryIntegrations.CaptureConsole({
|
||||
levels: ["error"],
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
// Block pinch-zooming on iOS outside of the content area
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue