Explorar o código

Log only when files are updated

Neeraj Gupta %!s(int64=3) %!d(string=hai) anos
pai
achega
0da95111bb
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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,