Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[desktop] Include the disk file count in the export logs

Manav Rathi2c9cff040d47
diff --git a/web/apps/photos/src/services/export/index.ts b/web/apps/photos/src/services/export/index.ts
index e61f186421..76b0c287c7 100644
--- a/web/apps/photos/src/services/export/index.ts
+++ b/web/apps/photos/src/services/export/index.ts
@@ -380,7 +380,7 @@ class ExportService {
);
log.info(
- `files:${files.length} unexported files: ${filesToExport.length}, deleted exported files: ${removedFileUIDs.length}, renamed collections: ${renamedCollections.length}, deleted collections: ${deletedExportedCollections.length}`,
+ `[export] files: ${files.length}, disk files: ${diskFileRecordIDs?.size ?? "<na>"}, unexported files: ${filesToExport.length}, deleted exported files: ${removedFileUIDs.length}, renamed collections: ${renamedCollections.length}, deleted collections: ${deletedExportedCollections.length}`,
);
let success = 0;
let failed = 0;
@@ -1256,7 +1256,7 @@ const readOnDiskFileExportRecordIDs = async (
//
// - `exportDir` traces its origin to `electron.selectDirectory()`, which
// returns POSIX paths. Down below we use it as the base directory when
- // construction paths for the items to export.
+ // constructing paths for the items to export.
//
// - `findFiles` is also guaranteed to return POSIX paths.
//