Skip to content

Commit

Permalink
del
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed May 21, 2024
1 parent 049f97b commit b77ab1c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ runs:
# ensure we sign the artifacts
NODE_ENV: production
# analytics tokens
SENTRY_TOKEN: https://[email protected]/4504451487301632
SENTRY_TOKEN: https://[email protected].us.sentry.io/4504451487301632
AMPLITUDE_TOKEN: 'balena-etcher'
# Apple notarization
XCODE_APP_LOADER_EMAIL: ${{ fromJSON(inputs.secrets).XCODE_APP_LOADER_EMAIL }}
Expand Down
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 b77ab1c

Please sign in to comment.