فهرست منبع

Don't log a potentially huge list

Manav Rathi 1 سال پیش
والد
کامیت
6086d43635
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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;
                 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;
                 isPendingDesktopUpload.current = true;
                 pendingDesktopUploadCollectionName.current = collectionName;
                 pendingDesktopUploadCollectionName.current = collectionName;
                 setDesktopFilePaths(filePaths);
                 setDesktopFilePaths(filePaths);