Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Restore base upload mismatch warning

Prateek Sunale87021ba3730
diff --git a/mobile/apps/photos/lib/services/sync/remote_sync_service.dart b/mobile/apps/photos/lib/services/sync/remote_sync_service.dart
index bcdf01cfd3..046dd28926 100644
--- a/mobile/apps/photos/lib/services/sync/remote_sync_service.dart
+++ b/mobile/apps/photos/lib/services/sync/remote_sync_service.dart
@@ -489,6 +489,12 @@ class RemoteSyncService {
final int missingFileRows = shouldLogSyncRecovery
? postFilterCount - fileFoundForLocalIDs.length
: 0;
+ if (fileFoundForLocalIDs.length != localIDsToSync.length) {
+ _logger.warning(
+ "mismatch in num of filesToSync ${localIDsToSync.length} to "
+ "fileSynced ${fileFoundForLocalIDs.length}",
+ );
+ }
if (missingFileRows > 0) {
final sample =
localIDsToSync.difference(fileFoundForLocalIDs).take(3);