mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 05:36:34 +00:00
Merge pull request #4233 from balena-io/sentry
patch: add sentry debug flag
This commit is contained in:
commit
326a3c740f
@ -122,7 +122,11 @@ let analyticsClient: Client;
|
|||||||
export const initAnalytics = once(() => {
|
export const initAnalytics = once(() => {
|
||||||
const dsn =
|
const dsn =
|
||||||
settings.getSync('analyticsSentryToken') || process.env.SENTRY_TOKEN;
|
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 =
|
const projectName =
|
||||||
settings.getSync('analyticsAmplitudeToken') || process.env.AMPLITUDE_TOKEN;
|
settings.getSync('analyticsAmplitudeToken') || process.env.AMPLITUDE_TOKEN;
|
||||||
|
@ -121,6 +121,7 @@ const initSentryMain = once(() => {
|
|||||||
SentryMain.init({
|
SentryMain.init({
|
||||||
dsn,
|
dsn,
|
||||||
beforeSend: anonymizeSentryData,
|
beforeSend: anonymizeSentryData,
|
||||||
|
debug: process.env.ETCHER_SENTRY_DEBUG === 'true',
|
||||||
});
|
});
|
||||||
console.log(SentryMain.getCurrentScope());
|
console.log(SentryMain.getCurrentScope());
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user