π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
format
laurenspriemedcec3277e5f
diff --git a/mobile/apps/photos/lib/core/error-reporting/super_logging.dart b/mobile/apps/photos/lib/core/error-reporting/super_logging.dartindex bbbe76570a..2f2e6a8bc9 100644--- a/mobile/apps/photos/lib/core/error-reporting/super_logging.dart+++ b/mobile/apps/photos/lib/core/error-reporting/super_logging.dart@@ -221,16 +221,16 @@ class SuperLogging {// Initialize log viewer integration in debug mode// Initialize log viewer in debug mode only- if (kDebugMode) {- try {- await LogViewer.initialize();- // Register LogViewer with SuperLogging to receive logs with process prefix- LogViewer.registerWithSuperLogging(SuperLogging.registerLogCallback);- $.info("Log viewer initialized successfully");- } catch (e) {- $.warning("Failed to initialize log viewer: $e");+ if (kDebugMode) {+ try {+ await LogViewer.initialize();+ // Register LogViewer with SuperLogging to receive logs with process prefix+ LogViewer.registerWithSuperLogging(SuperLogging.registerLogCallback);+ $.info("Log viewer initialized successfully");+ } catch (e) {+ $.warning("Failed to initialize log viewer: $e");+ }}- }if (appConfig.body == null) return;@@ -313,14 +313,14 @@ class SuperLogging {saveLogString(str, rec.error);// Hook for external log viewer (if available)// This allows the log_viewer package to capture logs without creating a dependency- if(_logViewerCallback != null) {- try {- if (_logViewerCallback != null) {- _logViewerCallback!(rec, config.prefix);+ if (_logViewerCallback != null) {+ try {+ if (_logViewerCallback != null) {+ _logViewerCallback!(rec, config.prefix);+ }+ } catch (_) {+ // Silently ignore any errors from the log viewer}- } catch (_) {- // Silently ignore any errors from the log viewer- }}}diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dartindex 0e32959196..a575787c5e 100644--- a/mobile/apps/photos/lib/main.dart+++ b/mobile/apps/photos/lib/main.dart@@ -1,4 +1,4 @@- import 'dart:async';+import 'dart:async';import 'dart:io';import "package:adaptive_theme/adaptive_theme.dart";