Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Log when magicSearch is disabled

Neeraj Gupta7a197124eaef
diff --git a/mobile/lib/services/machine_learning/semantic_search/semantic_search_service.dart b/mobile/lib/services/machine_learning/semantic_search/semantic_search_service.dart
index f714133784..baf0e9d58b 100644
--- a/mobile/lib/services/machine_learning/semantic_search/semantic_search_service.dart
+++ b/mobile/lib/services/machine_learning/semantic_search/semantic_search_service.dart
@@ -78,6 +78,10 @@ class SemanticSearchService {
// If there are multiple call tho this method, then for all the calls, the result will be the same as the last query.
Future<(String, List<EnteFile>)> searchScreenQuery(String query) async {
if (!isMagicSearchEnabledAndReady()) {
+ if (flagService.internalUser) {
+ _logger.info(
+ "Magic search enabled ${localSettings.isFaceIndexingEnabled}, loaded $_textModelIsLoaded cached ${_cachedImageEmbeddings.isNotEmpty}");
+ }
return (query, <EnteFile>[]);
}
// If there's an ongoing request, just update the last query and return its future.