π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Change logger.finest to logger.info
laurenspriem67f43453aa6d
diff --git a/mobile/lib/db/device_files_db.dart b/mobile/lib/db/device_files_db.dartindex b464039f2c..0e56b1a73b 100644--- a/mobile/lib/db/device_files_db.dart+++ b/mobile/lib/db/device_files_db.dart@@ -206,14 +206,14 @@ extension DeviceFiles on FilesDB {});if (rowUpdated > 0) {- _logger.fine("Updated $rowUpdated rows for ${pathEntity.name}");+ _logger.info("Updated $rowUpdated rows for ${pathEntity.name}");hasUpdated = true;}} else {hasUpdated = true;await db.execute('''- INSERT INTO device_collections (id, name, count, cover_id, should_backup)+ INSERT INTO device_collections (id, name, count, cover_id, should_backup)VALUES (?, ?, ?, ?, ?);''',[@@ -267,8 +267,8 @@ extension DeviceFiles on FilesDB {final db = await sqliteAsyncDB;final rows = await db.getAll('''- SELECT collection_id FROM device_collections where should_backup =- $_sqlBoolTrue+ SELECT collection_id FROM device_collections where should_backup =+ $_sqlBoolTrueand collection_id != -1;''',);@@ -338,12 +338,12 @@ extension DeviceFiles on FilesDB {SELECT *FROM ${FilesDB.filesTable}WHERE ${FilesDB.columnLocalID} IS NOT NULL AND- ${FilesDB.columnCreationTime} >= $startTime AND+ ${FilesDB.columnCreationTime} >= $startTime AND${FilesDB.columnCreationTime} <= $endTime AND- (${FilesDB.columnOwnerID} IS NULL OR ${FilesDB.columnOwnerID} =- $ownerID ) AND- ${FilesDB.columnLocalID} IN- (SELECT id FROM device_files where path_id = '${deviceCollection.id}' )+ (${FilesDB.columnOwnerID} IS NULL OR ${FilesDB.columnOwnerID} =+ $ownerID ) AND+ ${FilesDB.columnLocalID} IN+ (SELECT id FROM device_files where path_id = '${deviceCollection.id}' )ORDER BY ${FilesDB.columnCreationTime} $order , ${FilesDB.columnModificationTime} $order''' +(limit != null ? ' limit $limit;' : ';');@@ -359,14 +359,14 @@ extension DeviceFiles on FilesDB {) async {final db = await sqliteAsyncDB;const String rawQuery = '''- SELECT ${FilesDB.columnLocalID}, ${FilesDB.columnUploadedFileID},- ${FilesDB.columnFileSize}+ SELECT ${FilesDB.columnLocalID}, ${FilesDB.columnUploadedFileID},+ ${FilesDB.columnFileSize}FROM ${FilesDB.filesTable}WHERE ${FilesDB.columnLocalID} IS NOT NULL AND(${FilesDB.columnOwnerID} IS NULL OR ${FilesDB.columnOwnerID} = ?)AND (${FilesDB.columnUploadedFileID} IS NOT NULL AND ${FilesDB.columnUploadedFileID} IS NOT -1)- AND- ${FilesDB.columnLocalID} IN+ AND+ ${FilesDB.columnLocalID} IN(SELECT id FROM device_files where path_id = ?)''';final results = await db.getAll(rawQuery, [ownerID, pathID]);@@ -425,7 +425,7 @@ extension DeviceFiles on FilesDB {final EnteFile? result =await getDeviceCollectionThumbnail(deviceCollection.id);if (result == null) {- _logger.finest(+ _logger.info('Failed to find coverThumbnail for deviceFolder',);continue;@@ -453,7 +453,7 @@ extension DeviceFiles on FilesDB {debugPrint("Call fallback method to get potential thumbnail");final db = await sqliteAsyncDB;final fileRows = await db.getAll(- '''SELECT * FROM FILES f JOIN device_files df on f.local_id = df.id+ '''SELECT * FROM FILES f JOIN device_files df on f.local_id = df.idand df.path_id= ? order by f.creation_time DESC limit 1;''',[pathID],diff --git a/mobile/lib/services/account/billing_service.dart b/mobile/lib/services/account/billing_service.dartindex 3b2c825544..bb8c1c1f34 100644--- a/mobile/lib/services/account/billing_service.dart+++ b/mobile/lib/services/account/billing_service.dart@@ -33,7 +33,7 @@ class BillingService {Future<BillingPlans>? _future;BillingService(this._enteDio) {- _logger.finest("BillingService constructor");+ _logger.info("BillingService constructor");init();}diff --git a/mobile/lib/services/account/user_service.dart b/mobile/lib/services/account/user_service.dartindex 00f6842d97..d3673603a5 100644--- a/mobile/lib/services/account/user_service.dart+++ b/mobile/lib/services/account/user_service.dart@@ -693,19 +693,19 @@ class UserService {ProgressDialog dialog,) async {late Uint8List keyEncryptionKey;- _logger.finest('Start deriving key');+ _logger.info('Start deriving key');keyEncryptionKey = await CryptoUtil.deriveKey(utf8.encode(userPassword),CryptoUtil.base642bin(srpAttributes.kekSalt),srpAttributes.memLimit,srpAttributes.opsLimit,);- _logger.finest('keyDerivation done, derive LoginKey');+ _logger.info('keyDerivation done, derive LoginKey');final loginKey = await CryptoUtil.deriveLoginKey(keyEncryptionKey);final Uint8List identity = Uint8List.fromList(utf8.encode(srpAttributes.srpUserID),);- _logger.finest('loginKey derivation done');+ _logger.info('loginKey derivation done');final Uint8List salt = base64Decode(srpAttributes.srpSalt);final Uint8List password = loginKey;final SecureRandom random = _getSecureRandom();diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dartindex 5e84acc8d2..ee3d662a63 100644--- a/mobile/lib/services/collections_service.dart+++ b/mobile/lib/services/collections_service.dart@@ -1351,7 +1351,7 @@ class CollectionsService {Future<Collection> fetchCollectionByID(int collectionID) async {try {- _logger.fine('fetching collectionByID $collectionID');+ _logger.info('fetching collectionByID $collectionID');final response = await _enteDio.get("/collections/$collectionID",);diff --git a/mobile/lib/services/hidden_service.dart b/mobile/lib/services/hidden_service.dartindex b97695a62d..f7321b0670 100644--- a/mobile/lib/services/hidden_service.dart+++ b/mobile/lib/services/hidden_service.dart@@ -138,7 +138,7 @@ extension HiddenService on CollectionsService {for (MapEntry<int, List<EnteFile>> entryin collectionToFilesMap.entries) {if (entry.key == defaultHiddenCollection.id) {- _logger.finest('file already part of hidden collection');+ _logger.info('file already part of hidden collection');continue;}final Collection? c = getCollectionByID(entry.key);diff --git a/mobile/lib/services/ignored_files_service.dart b/mobile/lib/services/ignored_files_service.dartindex c03c624f74..22009d1835 100644--- a/mobile/lib/services/ignored_files_service.dart+++ b/mobile/lib/services/ignored_files_service.dart@@ -98,7 +98,7 @@ class IgnoredFilesService {}Future<Map<String, String>> _loadIDsToReasonMap() async {- _logger.fine('loading existing IDs');+ _logger.info('loading existing IDs');final dbResult = await _db.getAll();final Map<String, String> result = <String, String>{};for (IgnoredFile iFile in dbResult) {diff --git a/mobile/lib/services/local_file_update_service.dart b/mobile/lib/services/local_file_update_service.dartindex 938e8067d2..bf724f55ac 100644--- a/mobile/lib/services/local_file_update_service.dart+++ b/mobile/lib/services/local_file_update_service.dart@@ -202,7 +202,7 @@ class LocalFileUpdateService {file.modificationTime!,fileType,);- _logger.fine('fileType changed for ${file.tag} to ${e.reason} for ');+ _logger.info('fileType changed for ${file.tag} to ${e.reason} for ');} else {_logger.severe("failed to check hash: invalid file ${file.tag}", e);}diff --git a/mobile/lib/services/machine_learning/face_ml/face_recognition_service.dart b/mobile/lib/services/machine_learning/face_ml/face_recognition_service.dartindex e653751f4f..2f59b4c363 100644--- a/mobile/lib/services/machine_learning/face_ml/face_recognition_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_recognition_service.dart@@ -18,7 +18,7 @@ class FaceRecognitionService {static final _logger = Logger("FaceRecognitionService");FaceRecognitionService() {- _logger.finest("FaceRecognitionService constructor");+ _logger.info("FaceRecognitionService constructor");init();}diff --git a/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart b/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dartindex 6b8fea7600..6cbdc7fd4b 100644--- a/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart+++ b/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart@@ -395,7 +395,7 @@ class ClusterFeedbackService<T> {} catch (e, s) {_logger.severe("Error in sorting suggestions", e, s);}- _logger.finest(+ _logger.info('getFastSuggestionForPerson post-processing suggestions took ${DateTime.now().difference(startTime).inMilliseconds} ms, of which sorting took ${DateTime.now().difference(getFilesTime).inMilliseconds} ms and getting files took ${getFilesTime.difference(startTime).inMilliseconds} ms',);@@ -867,7 +867,7 @@ class ClusterFeedbackService<T> {threshold,);final suggestionCalcTime = DateTime.now();- _logger.finest(+ _logger.info("Calculated average vectors in ${avgCalcTime.difference(startTime).inMilliseconds}ms and suggestions in ${suggestionCalcTime.difference(avgCalcTime).inMilliseconds}ms",);return foundSuggestions;diff --git a/mobile/lib/services/machine_learning/ml_indexing_isolate.dart b/mobile/lib/services/machine_learning/ml_indexing_isolate.dartindex 635f6120b1..e66848bb27 100644--- a/mobile/lib/services/machine_learning/ml_indexing_isolate.dart+++ b/mobile/lib/services/machine_learning/ml_indexing_isolate.dart@@ -106,7 +106,7 @@ class MLIndexingIsolate extends SuperIsolate {Future<void> ensureDownloadedModels([bool forceRefresh = false]) async {if (_downloadModelLock.locked) {- _logger.finest("Download models already in progress");+ _logger.info("Download models already in progress");return;}return _downloadModelLock.synchronized(() async {diff --git a/mobile/lib/services/magic_cache_service.dart b/mobile/lib/services/magic_cache_service.dartindex 66e970f31d..fc517cc150 100644--- a/mobile/lib/services/magic_cache_service.dart+++ b/mobile/lib/services/magic_cache_service.dart@@ -183,7 +183,7 @@ class MagicCacheService {bool _isUpdateInProgress = false;MagicCacheService(this._prefs) {- _logger.fine("MagicCacheService constructor");+ _logger.info("MagicCacheService constructor");Bus.instance.on<FileUploadedEvent>().listen((event) {queueUpdate("File uploaded");});diff --git a/mobile/lib/services/memories_cache_service.dart b/mobile/lib/services/memories_cache_service.dartindex 458ca0f3d3..b967244ad7 100644--- a/mobile/lib/services/memories_cache_service.dart+++ b/mobile/lib/services/memories_cache_service.dart@@ -55,7 +55,7 @@ class MemoriesCacheService {final _memoriesGetLock = Lock();MemoriesCacheService(this._prefs) {- _logger.fine("MemoriesCacheService constructor");+ _logger.info("MemoriesCacheService constructor");Future.delayed(_kCacheUpdateDelay, () {_checkIfTimeToUpdateCache();diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dartindex 127f99d898..2b747087f5 100644--- a/mobile/lib/services/search_service.dart+++ b/mobile/lib/services/search_service.dart@@ -96,7 +96,7 @@ class SearchService {}if (_cachedFilesFuture == null) {- _logger.fine("Reading all files from db");+ _logger.info("Reading all files from db");_cachedFilesFuture = FilesDB.instance.getAllFilesFromDB(ignoreCollections(),dedupeByUploadId: false,@@ -122,7 +122,7 @@ class SearchService {}if (_cachedFilesFuture == null) {- _logger.fine("Reading all files from db");+ _logger.info("Reading all files from db");_cachedFilesFuture = FilesDB.instance.getAllFilesFromDB(ignoreCollections(),dedupeByUploadId: false,@@ -146,7 +146,7 @@ class SearchService {if (_cachedHiddenFilesFuture != null) {return _cachedHiddenFilesFuture!;}- _logger.fine("Reading hidden files from db");+ _logger.info("Reading hidden files from db");final hiddenCollections =CollectionsService.instance.getHiddenCollectionIds();_cachedHiddenFilesFuture =@@ -691,7 +691,7 @@ class SearchService {}}if (showNoLocationTag) {- _logger.fine("finding photos with no location");+ _logger.info("finding photos with no location");// find files that have location but the file's location is not inside// any location tagfinal noLocationTagFiles = allFiles.where((file) {diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dartindex f523ecc48b..48ad3546b5 100644--- a/mobile/lib/services/smart_memories_service.dart+++ b/mobile/lib/services/smart_memories_service.dart@@ -70,36 +70,36 @@ class SmartMemoriesService {}) async {try {final TimeLogger t = TimeLogger(context: "calcMemories");- _logger.finest(+ _logger.info('calcMemories called with time: $now at ${DateTime.now()} $t',);final (allFiles, allFileIdsToFile) = await _getFilesAndMapForMemories();- _logger.finest("All files length: ${allFiles.length} $t");+ _logger.info("All files length: ${allFiles.length} $t");final collectionIDsToExclude = await getCollectionIDsToExclude();- _logger.finest(+ _logger.info('collectionIDsToExclude length: ${collectionIDsToExclude.length} $t',);final seenTimes = await _memoriesDB.getSeenTimes();- _logger.finest('seenTimes has ${seenTimes.length} entries $t');+ _logger.info('seenTimes has ${seenTimes.length} entries $t');final persons = await PersonService.instance.getPersons();- _logger.finest('gotten all ${persons.length} persons $t');+ _logger.info('gotten all ${persons.length} persons $t');final currentUserEmail = Configuration.instance.getEmail();- _logger.finest('currentUserEmail: $currentUserEmail $t');+ _logger.info('currentUserEmail: $currentUserEmail $t');final cities = await locationService.getCities();- _logger.finest('cities has ${cities.length} entries $t');+ _logger.info('cities has ${cities.length} entries $t');final Map<int, List<FaceWithoutEmbedding>> fileIdToFaces =await MLDataDB.instance.getFileIDsToFacesWithoutEmbedding();- _logger.finest('fileIdToFaces has ${fileIdToFaces.length} entries $t');+ _logger.info('fileIdToFaces has ${fileIdToFaces.length} entries $t');final allImageEmbeddings = await MLDataDB.instance.getAllClipVectors();- _logger.finest(+ _logger.info('allImageEmbeddings has ${allImageEmbeddings.length} entries $t',);@@ -120,15 +120,15 @@ class SmartMemoriesService {await MLComputer.instance.runClipText(clipQuery(clipMemoryType)),);}- _logger.finest('clipPositiveTextVector and clipPeopleActivityVectors $t');+ _logger.info('clipPositiveTextVector and clipPeopleActivityVectors $t');final local = await getLocale();final languageCode = local?.languageCode ?? "en";final s = await LanguageService.s;- _logger.finest('get locale and S $t');+ _logger.info('get locale and S $t');- _logger.finest('all data fetched $t at ${DateTime.now()}, to computer');+ _logger.info('all data fetched $t at ${DateTime.now()}, to computer');final memoriesResult = await Computer.shared().compute(_allMemoriesCalculations,param: <String, dynamic>{@@ -149,14 +149,14 @@ class SmartMemoriesService {"clipMemoryTypeVectors": clipMemoryTypeVectors,},) as MemoriesResult;- _logger.finest(+ _logger.info('${memoriesResult.memories.length} memories computed in computer $t',);for (final memory in memoriesResult.memories) {memory.title = memory.createTitle(s, languageCode);}- _logger.finest('titles created for all memories $t');+ _logger.info('titles created for all memories $t');return memoriesResult;} catch (e, s) {_logger.severe("Error calculating smart memories", e, s);@@ -359,7 +359,7 @@ class SmartMemoriesService {final languageCode = local?.languageCode ?? "en";final s = await LanguageService.s;- _logger.finest('get locale and S');+ _logger.info('get locale and S');for (final memory in memories) {memory.title = memory.createTitle(s, languageCode);}diff --git a/mobile/lib/services/sync/local_sync_service.dart b/mobile/lib/services/sync/local_sync_service.dartindex 0b3a14ec47..8e46ba9893 100644--- a/mobile/lib/services/sync/local_sync_service.dart+++ b/mobile/lib/services/sync/local_sync_service.dart@@ -130,7 +130,7 @@ class LocalSyncService {if (!hasCompletedFirstImport()) {await _prefs.setBool(kHasCompletedFirstImportKey, true);await _refreshDeviceFolderCountAndCover(isFirstSync: true);- _logger.fine("first gallery import finished");+ _logger.info("first gallery import finished");Bus.instance.fire(SyncStatusUpdate(SyncStatus.completedFirstGalleryImport));}diff --git a/mobile/lib/services/sync/remote_sync_service.dart b/mobile/lib/services/sync/remote_sync_service.dartindex 2f1b59c1c1..f7c3bb6a9e 100644--- a/mobile/lib/services/sync/remote_sync_service.dart+++ b/mobile/lib/services/sync/remote_sync_service.dart@@ -991,7 +991,7 @@ class RemoteSyncService {final totalCount = sharedFilesIDs.length + collectedFilesIDs.length;if (totalCount > 0) {final collection = _collectionsService.getCollectionByID(collectionID);- _logger.finest(+ _logger.info('creating notification for ${collection?.displayName} ''shared: $sharedFilesIDs, collected: $collectedFilesIDs files',);diff --git a/mobile/lib/services/sync/trash_sync_service.dart b/mobile/lib/services/sync/trash_sync_service.dartindex b3cf1db6a9..b2955f22d5 100644--- a/mobile/lib/services/sync/trash_sync_service.dart+++ b/mobile/lib/services/sync/trash_sync_service.dart@@ -32,7 +32,7 @@ class TrashSyncService {final Dio _enteDio;TrashSyncService(this._prefs, this._enteDio) {- _logger.fine("TrashSyncService constructor");+ _logger.info("TrashSyncService constructor");}void init(SharedPreferences preferences) {@@ -42,20 +42,20 @@ class TrashSyncService {Future<void> syncTrash() async {final lastSyncTime = _getSyncTime();bool isLocalTrashUpdated = false;- _logger.fine('sync trash sinceTime : $lastSyncTime');+ _logger.info('sync trash sinceTime : $lastSyncTime');final diff = await getTrashFilesDiff(lastSyncTime);if (diff.trashedFiles.isNotEmpty) {isLocalTrashUpdated = true;- _logger.fine("inserting ${diff.trashedFiles.length} items in trash");+ _logger.info("inserting ${diff.trashedFiles.length} items in trash");await _trashDB.insertMultiple(diff.trashedFiles);}if (diff.deletedUploadIDs.isNotEmpty) {- _logger.fine("discard ${diff.deletedUploadIDs.length} deleted items");+ _logger.info("discard ${diff.deletedUploadIDs.length} deleted items");final itemsDeleted = await _trashDB.delete(diff.deletedUploadIDs);isLocalTrashUpdated = isLocalTrashUpdated || itemsDeleted > 0;}if (diff.restoredFiles.isNotEmpty) {- _logger.fine("discard ${diff.restoredFiles.length} restored items");+ _logger.info("discard ${diff.restoredFiles.length} restored items");final itemsDeleted = await _trashDB.delete(diff.restoredFiles.map((e) => e.uploadedFileID!).toList());isLocalTrashUpdated = isLocalTrashUpdated || itemsDeleted > 0;@@ -94,7 +94,7 @@ class TrashSyncService {}}if (ignoredFiles.isNotEmpty) {- _logger.fine('updating ${ignoredFiles.length} ignored files ');+ _logger.info('updating ${ignoredFiles.length} ignored files ');await IgnoredFilesService.instance.cacheAndInsert(ignoredFiles);}}diff --git a/mobile/lib/states/all_sections_examples_state.dart b/mobile/lib/states/all_sections_examples_state.dartindex 2a9482f63f..a652dcdcfb 100644--- a/mobile/lib/states/all_sections_examples_state.dart+++ b/mobile/lib/states/all_sections_examples_state.dart@@ -79,7 +79,7 @@ class _AllSectionsExamplesProviderStatevoid onDataUpdate() {if (!isOnSearchTab) {if (kDebugMode) {- _logger.finest('Skip reload till user clicks on search tab');+ _logger.info('Skip reload till user clicks on search tab');}hasPendingUpdate = true;} else {diff --git a/mobile/lib/ui/actions/collection/collection_sharing_actions.dart b/mobile/lib/ui/actions/collection/collection_sharing_actions.dartindex 0583798dcf..e210b7df72 100644--- a/mobile/lib/ui/actions/collection/collection_sharing_actions.dart+++ b/mobile/lib/ui/actions/collection/collection_sharing_actions.dart@@ -115,7 +115,7 @@ class CollectionActions {try {// create album with emptyName, use collectionCreationTime on UI to// show name- logger.finest("creating album for sharing files");+ logger.info("creating album for sharing files");final EnteFile fileWithMinCreationTime = files.reduce((a, b) => (a.creationTime ?? 0) < (b.creationTime ?? 0) ? a : b,);@@ -136,9 +136,9 @@ class CollectionActions {req,);newCollection = collection;- logger.finest("adding files to share to new album");+ logger.info("adding files to share to new album");await collectionsService.addOrCopyToCollection(collection.id, files);- logger.finest("creating public link for the newly created album");+ logger.info("creating public link for the newly created album");try {await CollectionsService.instance.createShareUrl(collection);} catch (e) {diff --git a/mobile/lib/ui/payment/payment_web_page.dart b/mobile/lib/ui/payment/payment_web_page.dartindex 23b1b66a74..ba2cf497ef 100644--- a/mobile/lib/ui/payment/payment_web_page.dart+++ b/mobile/lib/ui/payment/payment_web_page.dart@@ -182,7 +182,7 @@ class _PaymentWebPageState extends State<PaymentWebPage> {Future<void> _handlePaymentResponse(Uri uri) async {final queryParams = uri.queryParameters;final paymentStatus = uri.queryParameters['status'] ?? '';- _logger.fine('handle payment response with status $paymentStatus');+ _logger.info('handle payment response with status $paymentStatus');if (paymentStatus == 'success') {await _handlePaymentSuccess(queryParams);} else if (paymentStatus == 'fail') {diff --git a/mobile/lib/ui/tools/lock_screen.dart b/mobile/lib/ui/tools/lock_screen.dartindex e81cc2b8bc..dfaf389322 100644--- a/mobile/lib/ui/tools/lock_screen.dart+++ b/mobile/lib/ui/tools/lock_screen.dart@@ -337,7 +337,7 @@ class _LockScreenState extends State<LockScreen>context.l10n.authToViewYourMemories,isOpeningApp: true,);- _logger.finest("LockScreen Result $result");+ _logger.info("LockScreen Result $result");_isShowingLockScreen = false;if (result) {lastAuthenticatingTime = DateTime.now().millisecondsSinceEpoch;diff --git a/mobile/lib/ui/viewer/file/detail_page.dart b/mobile/lib/ui/viewer/file/detail_page.dartindex 9ee0fa222f..2df8e6520b 100644--- a/mobile/lib/ui/viewer/file/detail_page.dart+++ b/mobile/lib/ui/viewer/file/detail_page.dart@@ -269,7 +269,7 @@ class _DetailPageState extends State<DetailPage> {shouldDisableScroll: (value) {if (_shouldDisableScroll != value) {setState(() {- _logger.fine('setState $_shouldDisableScroll to $value');+ _logger.info('setState $_shouldDisableScroll to $value');_shouldDisableScroll = value;});}diff --git a/mobile/lib/ui/viewer/file/file_app_bar.dart b/mobile/lib/ui/viewer/file/file_app_bar.dartindex c3159dc8b9..79ac731279 100644--- a/mobile/lib/ui/viewer/file/file_app_bar.dart+++ b/mobile/lib/ui/viewer/file/file_app_bar.dart@@ -84,7 +84,7 @@ class FileAppBarState extends State<FileAppBar> {@overrideWidget build(BuildContext context) {- _logger.fine("building app bar ${widget.file.generatedID?.toString()}");+ _logger.info("building app bar ${widget.file.generatedID?.toString()}");//When the widget is initialized, the actions are not available.//Cannot call _getActions() in initState.diff --git a/mobile/lib/ui/viewer/file/thumbnail_widget.dart b/mobile/lib/ui/viewer/file/thumbnail_widget.dartindex f4d3e1cc3c..432dcae3c8 100644--- a/mobile/lib/ui/viewer/file/thumbnail_widget.dart+++ b/mobile/lib/ui/viewer/file/thumbnail_widget.dart@@ -271,7 +271,7 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {return _loadWithRetry().then((thumbData) async {if (thumbData == null) {if (widget.file.isUploaded) {- _logger.fine("Removing localID reference for " + widget.file.tag);+ _logger.info("Removing localID reference for " + widget.file.tag);widget.file.localID = null;if (widget.file.isTrash) {unawaited(TrashDB.instance.update(widget.file as TrashFile));diff --git a/mobile/lib/ui/viewer/file/zoomable_live_image_new.dart b/mobile/lib/ui/viewer/file/zoomable_live_image_new.dartindex 65f05dbdd0..4483c2ff40 100644--- a/mobile/lib/ui/viewer/file/zoomable_live_image_new.dart+++ b/mobile/lib/ui/viewer/file/zoomable_live_image_new.dart@@ -203,7 +203,7 @@ class _ZoomableLiveImageNewState extends State<ZoomableLiveImageNew>index: index,);} else if (_enteFile.isMotionPhoto && _enteFile.canEditMetaInfo) {- _logger.finest('Incorrectly tagged as MP, reset tag ${_enteFile.tag}');+ _logger.info('Incorrectly tagged as MP, reset tag ${_enteFile.tag}');FileMagicService.instance.updatePublicMagicMetadata([_enteFile],{motionVideoIndexKey: 0},diff --git a/mobile/lib/ui/viewer/file_details/upload_icon_widget.dart b/mobile/lib/ui/viewer/file_details/upload_icon_widget.dartindex 7493fc0be9..262e206c72 100644--- a/mobile/lib/ui/viewer/file_details/upload_icon_widget.dart+++ b/mobile/lib/ui/viewer/file_details/upload_icon_widget.dart@@ -65,7 +65,7 @@ class _UpdateIconWidgetState extends State<UploadIconWidget> {Widget build(BuildContext context) {if (SyncService.instance.isSyncInProgress()) {if (!widget.file.isUploaded) {- _logger.fine("sync in progress ${widget.file.displayName}");+ _logger.info("sync in progress ${widget.file.displayName}");}return const SizedBox.shrink();}diff --git a/mobile/lib/ui/viewer/gallery/device_folder_page.dart b/mobile/lib/ui/viewer/gallery/device_folder_page.dartindex 0eae4e1de1..b97e835945 100644--- a/mobile/lib/ui/viewer/gallery/device_folder_page.dart+++ b/mobile/lib/ui/viewer/gallery/device_folder_page.dart@@ -129,7 +129,7 @@ class _BackupHeaderWidgetState extends State<BackupHeaderWidget> {trailingWidget: ToggleSwitchWidget(value: () => shouldBackup.value,onChanged: () async {- _logger.fine(+ _logger.info("Toggling device folder sync status to ""${!shouldBackup.value}",);diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/lib/ui/viewer/gallery/gallery.dartindex 66da74f969..4cbba09f54 100644--- a/mobile/lib/ui/viewer/gallery/gallery.dart+++ b/mobile/lib/ui/viewer/gallery/gallery.dart@@ -122,7 +122,7 @@ class GalleryState extends State<Gallery> {_logTag ="Gallery_${widget.tagPrefix}${kDebugMode ? "_" + widget.albumName! : ""}_x";_logger = Logger(_logTag);- _logger.finest("init Gallery");+ _logger.info("init Gallery");_debouncer = Debouncer(widget.reloadDebounceTime,executionInterval: widget.reloadDebounceExecutionInterval,@@ -149,11 +149,11 @@ class GalleryState extends State<Gallery> {_debouncer.run(() async {// In soft refresh, setState is called for entire gallery only when// number of child change- _logger.finest("Soft refresh all files on ${event.reason} ");+ _logger.info("Soft refresh all files on ${event.reason} ");final result = await _loadFiles();final bool hasTriggeredSetState = _onFilesLoaded(result.files);if (hasTriggeredSetState && kDebugMode) {- _logger.finest(+ _logger.info("Reloaded gallery on soft refresh all files on ${event.reason}",);}@@ -179,7 +179,7 @@ class GalleryState extends State<Gallery> {_forceReloadEventSubscriptions.add(event.listen((event) async {_debouncer.run(() async {- _logger.finest("Force refresh all files on ${event.reason}");+ _logger.info("Force refresh all files on ${event.reason}");_sortOrderAsc =widget.sortAsyncFn != null ? widget.sortAsyncFn!() : false;final result = await _loadFiles();@@ -370,7 +370,7 @@ class GalleryState extends State<Gallery> {@overrideWidget build(BuildContext context) {- _logger.finest("Building Gallery ${widget.tagPrefix}");+ _logger.info("Building Gallery ${widget.tagPrefix}");GalleryFilesState.of(context).setGalleryFiles = _allGalleryFiles;if (!_hasLoadedFiles) {return widget.loadingWidget;diff --git a/mobile/lib/utils/file_download_util.dart b/mobile/lib/utils/file_download_util.dartindex 4828d775c1..3fea091fce 100644--- a/mobile/lib/utils/file_download_util.dart+++ b/mobile/lib/utils/file_download_util.dart@@ -137,7 +137,7 @@ Future<File?> downloadAndDecrypt(),onReceiveProgress: (a, b) {if (kDebugMode && a >= 0 && b >= 0) {- // _logger.fine(+ // _logger.info(// "$logPrefix download progress: ${formatBytes(a)} / ${formatBytes(b)}",// );}diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dartindex 577e0a8fc5..9bb28eeee4 100644--- a/mobile/lib/utils/file_uploader.dart+++ b/mobile/lib/utils/file_uploader.dart@@ -676,7 +676,7 @@ class FileUploader {await _putFile(fileUploadURL, encryptedFile, encFileSize);} else {isMultipartUpload = true;- _logger.finest(+ _logger.info("Init multipartUpload $multipartEntryExists, isUpdate $isUpdatedFile",);if (multipartEntryExists) {@@ -941,7 +941,7 @@ class FileUploader {(e.localID == fileToUpload.localID || isSandBoxFile),);if (sameLocalSameCollection != null) {- _logger.fine(+ _logger.info("sameLocalSameCollection: toUpload ${fileToUpload.tag} ""existing: ${sameLocalSameCollection.tag} $isSandBoxFile",);@@ -967,7 +967,7 @@ class FileUploader {if (fileMissingLocal != null) {// update the local id of the existing file and delete the fileToUpload// entry- _logger.fine(+ _logger.info("fileMissingLocal: \n toUpload ${fileToUpload.tag} ""\n existing: ${fileMissingLocal.tag}",);@@ -1000,7 +1000,7 @@ class FileUploader {(e.localID == fileToUpload.localID || isSandBoxFile),);if (fileExistsButDifferentCollection != null) {- _logger.fine(+ _logger.info("fileExistsButDifferentCollection: toUpload ${fileToUpload.tag} ""existing: ${fileExistsButDifferentCollection.tag} $isSandBoxFile",);@@ -1018,7 +1018,7 @@ class FileUploader {).map((e) => e.localID!).toSet();- _logger.fine(+ _logger.info("Found hashMatch but probably with diff localIDs ""$matchLocalIDs",);@@ -1049,7 +1049,7 @@ class FileUploader {}if (File(encryptedFilePath).existsSync()) {if (isMultiPartUpload && !uploadCompleted) {- _logger.fine(+ _logger.info("skip delete for multipart encrypted file $encryptedFilePath",);} else {diff --git a/mobile/lib/utils/file_uploader_util.dart b/mobile/lib/utils/file_uploader_util.dartindex d59cce75b5..ba1db4da72 100644--- a/mobile/lib/utils/file_uploader_util.dart+++ b/mobile/lib/utils/file_uploader_util.dart@@ -152,7 +152,7 @@ Future<MediaUploadData> _getMediaUploadDataFromAssetFile(// .elp -> ente live photofinal uniqueId = const Uuid().v4().toString();final livePhotoPath = tempPath + uniqueId + "_${file.generatedID}.elp";- _logger.fine("Creating zip for live photo from " + basename(livePhotoPath));+ _logger.info("Creating zip for live photo from " + basename(livePhotoPath));await zip(zipPath: livePhotoPath,imagePath: sourceFile.path,diff --git a/mobile/lib/utils/file_util.dart b/mobile/lib/utils/file_util.dartindex 534fb29cfc..375b53a108 100644--- a/mobile/lib/utils/file_util.dart+++ b/mobile/lib/utils/file_util.dart@@ -218,7 +218,7 @@ Future<_LivePhoto?> _downloadLivePhoto(if (decryptedFile == null) {return null;}- _logger.fine("Decoded zipped live photo from " + decryptedFile.path);+ _logger.info("Decoded zipped live photo from " + decryptedFile.path);File? imageFileCache, videoFileCache;final List<int> bytes = await decryptedFile.readAsBytes();final Archive archive = ZipDecoder().decodeBytes(bytes);