We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62cd3f0 commit 60221c5Copy full SHA for 60221c5
.env.example
@@ -5,4 +5,4 @@ GA_UACODE=UA-XXXXXXXXX-X
5
# NODE_DEBUG=request # debug requests in analytics
6
# DEBUG_PROD=true
7
# FORCE_ENABLE_ANALYTICS=true
8
-
+# FORCE_ENABLE_SENTRY=true
src/shared/initSentry.ts
@@ -1,4 +1,5 @@
1
import log from 'electron-log';
2
+
3
Object.assign(console, log.functions);
4
const Sentry =
@@ -7,7 +8,11 @@ const Sentry =
: require('@sentry/electron/dist/renderer');
9
10
export function initSentry() {
- if (process.env.NODE_ENV === 'production' && process.env.SENTRY_DSN) {
11
+ if (
12
+ (process.env.NODE_ENV === 'production' ||
13
+ process.env.FORCE_ENABLE_SENTRY === 'true') &&
14
+ process.env.SENTRY_DSN
15
+ ) {
16
Sentry.init({
17
dsn: process.env.SENTRY_DSN,
18
});
0 commit comments