diff --git a/mobile/lib/utils/delete_file_util.dart b/mobile/lib/utils/delete_file_util.dart index 545ea9c27a..e519db77c0 100644 --- a/mobile/lib/utils/delete_file_util.dart +++ b/mobile/lib/utils/delete_file_util.dart @@ -342,8 +342,10 @@ Future deleteLocalFiles( final bool shouldDeleteInBatches = await isAndroidSDKVersionLowerThan(android11SDKINT); if (shouldDeleteInBatches) { + _logger.info("Deleting in batches"); deletedIDs.addAll(await deleteLocalFilesInBatches(context, localAssetIDs)); } else { + _logger.info("Deleting in one shot"); deletedIDs.addAll(await _deleteLocalFilesInOneShot(context, localAssetIDs)); } // In IOS, the library returns no error and fail to delete any file is @@ -426,6 +428,7 @@ Future> deleteLocalFilesInBatches( max(minimumBatchSize, (localIDs.length / minimumParts).round()), maximumBatchSize, ); + _logger.info("Batch size: $batchSize"); final List deletedIDs = []; for (int index = 0; index < localIDs.length; index += batchSize) { if (dialogKey.currentState != null) {