ソースを参照

Log only when files are updated

Neeraj Gupta 3 年 前
コミット
0da95111bb
1 ファイル変更3 行追加1 行削除
  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,