Skip to content

Commit

Permalink
Merge pull request #4233 from balena-io/sentry
Browse files Browse the repository at this point in the history
patch: add sentry debug flag
  • Loading branch information
flowzone-app[bot] authored May 28, 2024
2 parents 3245439 + 8223130 commit 326a3c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/gui/app/modules/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ let analyticsClient: Client;
export const initAnalytics = once(() => {
const dsn =
settings.getSync('analyticsSentryToken') || process.env.SENTRY_TOKEN;
SentryRenderer.init({ dsn, beforeSend: anonymizeSentryData });
SentryRenderer.init({
dsn,
beforeSend: anonymizeSentryData,
debug: process.env.ETCHER_SENTRY_DEBUG === 'true',
});

const projectName =
settings.getSync('analyticsAmplitudeToken') || process.env.AMPLITUDE_TOKEN;
Expand Down
1 change: 1 addition & 0 deletions lib/gui/etcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const initSentryMain = once(() => {
SentryMain.init({
dsn,
beforeSend: anonymizeSentryData,
debug: process.env.ETCHER_SENTRY_DEBUG === 'true',
});
console.log(SentryMain.getCurrentScope());
});
Expand Down

0 comments on commit 326a3c7

Please sign in to comment.