Browse Source

Log only when files are updated

Neeraj Gupta 3 years ago
parent
commit
0da95111bb
1 changed files with 3 additions and 1 deletions
  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,