mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-02 12:59:09 +00:00
fix: sentry hangs node process
This commit is contained in:
@@ -178,11 +178,11 @@ app.whenReady().then(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
dialog.showErrorBox('Ontime failed to reach server', error);
|
console.log('ERROR: Ontime failed to reach server', error);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
dialog.showErrorBox('Ontime failed to start', error);
|
console.log('ERROR: Ontime failed to start', error);
|
||||||
});
|
});
|
||||||
|
|
||||||
// recreate window if no others open
|
// recreate window if no others open
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^21.1.0",
|
"electron": "^22.3.5",
|
||||||
"electron-builder": "^23.6.0",
|
"electron-builder": "^23.6.0",
|
||||||
"eslint": "^8.31.0",
|
"eslint": "^8.31.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
|
|||||||
@@ -6,8 +6,7 @@
|
|||||||
"exports": "./src/index.js",
|
"exports": "./src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/node": "^7.47.0",
|
"@sentry/node": "^7.47.0",
|
||||||
"@sentry/profiling-node": "^0.3.0",
|
"@sentry/tracing": "^7.47.0",
|
||||||
"@sentry/tracing": "^7.46.0",
|
|
||||||
"body-parser": "^1.20.0",
|
"body-parser": "^1.20.0",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"dotenv": "^16.0.1",
|
"dotenv": "^16.0.1",
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import * as Sentry from '@sentry/node';
|
import * as Sentry from '@sentry/node';
|
||||||
import { ProfilingIntegration } from '@sentry/profiling-node';
|
|
||||||
|
|
||||||
let shouldReport;
|
let shouldReport;
|
||||||
|
|
||||||
@@ -8,8 +7,6 @@ export function initSentry(doReport) {
|
|||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: 'https://ceb6abdce7374857bb50b65636cbaed1@o4504288369836032.ingest.sentry.io/4504288555565056',
|
dsn: 'https://ceb6abdce7374857bb50b65636cbaed1@o4504288369836032.ingest.sentry.io/4504288555565056',
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
profilesSampleRate: 1.0, // Profiling sample rate is relative to tracesSampleRate
|
|
||||||
integrations: [new ProfilingIntegration()],
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Generated
+191
-555
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user