Explorar o código

Don't log a potentially huge list

Manav Rathi hai 1 ano
pai
achega
6086d43635
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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);