π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
feat: tag Sentry errors with execution context
Prateek Sunal9408b50c4100
diff --git a/mobile/apps/photos/lib/core/error-reporting/super_logging.dart b/mobile/apps/photos/lib/core/error-reporting/super_logging.dartindex 2a8b8ed201..b1538bc0d6 100644--- a/mobile/apps/photos/lib/core/error-reporting/super_logging.dart+++ b/mobile/apps/photos/lib/core/error-reporting/super_logging.dart@@ -283,6 +283,10 @@ class SuperLogging {if (_shouldSkipSentry(error)) {return;}++ // Determine execution context from prefix+ final executionContext = _getExecutionContext();+if (rec != null) {await Sentry.captureException(error,@@ -293,12 +297,16 @@ class SuperLogging {});scope.setTag('logger', rec.loggerName);scope.setTag('level', rec.level.name);+ scope.setTag('execution_context', executionContext);},);} else {await Sentry.captureException(error,stackTrace: stack,+ withScope: (scope) {+ scope.setTag('execution_context', executionContext);+ },);}} catch (e) {@@ -307,6 +315,15 @@ class SuperLogging {}}+ /// Determine execution context from prefix+ static String _getExecutionContext() {+ final prefix = config.prefix.trim();+ if (prefix.isEmpty) return 'foreground';+ if (prefix.contains('[bg]')) return 'background';+ if (prefix.contains('[fbg]')) return 'firebase_background';+ return 'unknown';+ }+static String _lastExtraLines = '';static Future onLogRecord(LogRecord rec) async {diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txtindex 4336b54b9b..16bbaa3320 100644--- a/mobile/apps/photos/scripts/internal_changes.txt+++ b/mobile/apps/photos/scripts/internal_changes.txt@@ -1,3 +1,7 @@+- Prateek: (i) Tag Sentry errors with execution_context for background vs foreground+- Prateek: (i) Add battery optimization package and method channel for foreground checks+- Prateek: (i) Improve WorkManager config with battery/storage constraints and exponential backoff+- Prateek: (i) Add minimal logging to sync and collections services for debugging- Prateek: Fix background uploads on Android 15 by skipping permission request in background mode- Prateek: Fix CronetException during background sync by disabling NativeAdapter on Android- Laurens: Change similar images labels copy