Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore: more sync logs

Prateek Sunal767703c38317
diff --git a/mobile/apps/photos/lib/services/smart_albums_service.dart b/mobile/apps/photos/lib/services/smart_albums_service.dart
index 1aa8148f46..e602ed0825 100644
--- a/mobile/apps/photos/lib/services/smart_albums_service.dart
+++ b/mobile/apps/photos/lib/services/smart_albums_service.dart
@@ -86,6 +86,7 @@ class SmartAlbumsService {
return;
}
+ _logger.info("Syncing Smart Albums");
final cachedConfigs = await getSmartConfigs();
final userId = Configuration.instance.getUserID()!;
@@ -166,11 +167,14 @@ class SmartAlbumsService {
newConfig = newConfig.addFiles(updatedAtMap, pendingSyncFiles);
await saveConfig(newConfig);
- } catch (_) {}
+ } catch (e, sT) {
+ _logger.warning(e, sT);
+ }
}
}
syncingCollection = null;
Bus.instance.fire(SmartAlbumSyncingEvent());
+ _logger.info("Smart Albums sync completed");
}
Future<SmartAlbumConfig> addPeopleToSmartAlbum(