π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
remove testing changes
Abhinav0c14a7d79a31
diff --git a/src/config/sentry.ts b/src/config/sentry.tsindex 5dbe6b14e2..5b0330a045 100644--- a/src/config/sentry.ts+++ b/src/config/sentry.ts@@ -1,6 +1,8 @@+import { isDev } from '../utils/common';import { APP_ENV } from '../constants/env';-export const getAppEnv = () => process.env.APP_ENV ?? APP_ENV.DEVELOPMENT;+export const getAppEnv = () =>+ process.env.APP_ENV ?? isDev ? APP_ENV.DEVELOPMENT : APP_ENV.PRODUCTION;export const isDisableSentryFlagSet = () => {return process.env.DISABLE_SENTRY === 'true';@@ -16,5 +18,5 @@ export const SENTRY_TUNNEL_URL = 'https://sentry-reporter.ente.io';export const getIsSentryEnabled = () => {const isAppENVDevelopment = getAppEnv() === APP_ENV.DEVELOPMENT;const isSentryDisabled = isDisableSentryFlagSet();- return !isSentryDisabled && isAppENVDevelopment;+ return !isSentryDisabled && !isAppENVDevelopment;};diff --git a/src/services/sentry.ts b/src/services/sentry.tsindex c4684e1f08..88db9bc5dc 100644--- a/src/services/sentry.ts+++ b/src/services/sentry.ts@@ -14,6 +14,7 @@ import {export function initSentry(): void {const APP_ENV = getAppEnv();const IS_ENABLED = getIsSentryEnabled();+ logToDisk(`initSentry: ${APP_ENV} ${IS_ENABLED}`);Sentry.init({dsn: SENTRY_DSN,enabled: IS_ENABLED,