Browse Source

Log only when files are updated

Neeraj Gupta 3 năm trước cách đây
mục cha
commit
0da95111bb
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      lib/services/local_sync_service.dart

+ 3 - 1
lib/services/local_sync_service.dart

@@ -231,7 +231,9 @@ class LocalSyncService {
       updatedFiles.removeWhere((file) => editedFileIDs.contains(file.localID));
       updatedFiles
           .removeWhere((file) => downloadedFileIDs.contains(file.localID));
-      _logger.info(updatedFiles.length.toString() + " files were updated.");
+      if (updatedFiles.isNotEmpty) {
+        _logger.info(updatedFiles.length.toString() + " files were updated.");
+      }
       for (final file in updatedFiles) {
         await _db.updateUploadedFile(
           file.localID,