mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-19 03:06:31 +00:00
Change Sentry DSN key.
This commit is contained in:
parent
e335a552c5
commit
5d6bda7e31
@ -9,7 +9,7 @@ import * as Sentry from "@sentry/browser";
|
|||||||
import { BrowserOptions, init } from '@sentry/browser';
|
import { BrowserOptions, init } from '@sentry/browser';
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
dsn: "https://d6f2d7fc84e74b05ac017753ef7bfff5@o19455.ingest.sentry.io/842726"
|
dsn: "https://5ef1859eb22d496390bdb4a673120b9d@o19455.ingest.sentry.io/842726"
|
||||||
};
|
};
|
||||||
init(config as BrowserOptions);
|
init(config as BrowserOptions);
|
||||||
|
|
||||||
@ -59,12 +59,12 @@ export class SentryErrorHandler implements ErrorHandler {
|
|||||||
|
|
||||||
// Capture handled exception and send it to Sentry.
|
// Capture handled exception and send it to Sentry.
|
||||||
const eventId = Sentry.captureException(extractedError);
|
const eventId = Sentry.captureException(extractedError);
|
||||||
|
|
||||||
// When in development mode, log the error to console for immediate feedback.
|
// When in development mode, log the error to console for immediate feedback.
|
||||||
if (!environment.production) {
|
if (!environment.production) {
|
||||||
console.error(extractedError);
|
console.error(extractedError);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Optionally show user dialog to provide details on what happened.
|
// Optionally show user dialog to provide details on what happened.
|
||||||
// Sentry.showReportDialog({ eventId });
|
// Sentry.showReportDialog({ eventId });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user