Browse Source

Don't log a potentially huge list

Manav Rathi 1 year ago
parent
commit
6086d43635
1 changed files with 3 additions and 1 deletions
  1. 3 1
      web/apps/photos/src/components/Upload/Uploader.tsx

+ 3 - 1
web/apps/photos/src/components/Upload/Uploader.tsx

@@ -261,7 +261,9 @@ export default function Uploader({
 
                 const { collectionName, filePaths, zipItems } = pending;
 
-                log.info("Resuming pending upload", pending);
+                log.info(
+                    `Resuming pending of upload of ${filePaths.length + zipItems.length} items${collectionName ? " to collection " + collectionName : ""}`,
+                );
                 isPendingDesktopUpload.current = true;
                 pendingDesktopUploadCollectionName.current = collectionName;
                 setDesktopFilePaths(filePaths);