Log exact times frames within which the photos are fetched

This commit is contained in:
Vishnu Mohandas 2021-02-18 13:26:05 +05:30
parent fb2600d1b1
commit 89f201161c

View file

@ -175,9 +175,9 @@ class SyncService {
Future<void> _loadAndStorePhotos(
int fromTime, int toTime, Set<String> existingLocalFileIDs) async {
_logger.info("Loading photos from " +
getMonthAndYear(DateTime.fromMicrosecondsSinceEpoch(fromTime)) +
DateTime.fromMicrosecondsSinceEpoch(fromTime).toString() +
" to " +
getMonthAndYear(DateTime.fromMicrosecondsSinceEpoch(toTime)));
DateTime.fromMicrosecondsSinceEpoch(toTime).toString());
final files = await getDeviceFiles(fromTime, toTime);
if (files.isNotEmpty) {
Bus.instance.fire(SyncStatusUpdate(SyncStatus.applying_local_diff));