Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge branch 'main' into text_embeddings_cache

Laurens Priem92c4b325cab9
diff --cc mobile/apps/photos/lib/core/error-reporting/super_logging.dart
index 2f2e6a8bc9,13cc1cace5..e3d1983d90
--- 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 +221,15 @@@ 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 (_preferences.getBool("enable_db_logging") ?? 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;
diff --cc mobile/apps/photos/scripts/internal_changes.txt
index aa68c02d91,3efc74a4a9..0ad8dc584f
--- a/mobile/apps/photos/scripts/internal_changes.txt
+++ b/mobile/apps/photos/scripts/internal_changes.txt
@@@ -1,2 -1,2 +1,3 @@@
-- Neeraj: Potential fix for ios in-app payment
-- Neeraj: (i) Debug option to enable logViewer
+- Laurens: text embedding caching for memories and discover
++- Neeraj: (i) Debug option to enable logViewer
+- Neeraj: Potential fix for ios in-app payment