From cd9d799d02d60f7432b43ddb9bf82c657bc4e1d1 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 16 Feb 2022 12:50:55 +0100 Subject: [PATCH] Add logging --- packages/ipfs-api/src/server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ipfs-api/src/server.ts b/packages/ipfs-api/src/server.ts index f90d8691..a726f591 100644 --- a/packages/ipfs-api/src/server.ts +++ b/packages/ipfs-api/src/server.ts @@ -130,6 +130,9 @@ async function reuploadFile(cid: string, recordsDB: Collection): Promis throw error; } + const fileStats = fs.statSync(filePath) + console.log('file stats', fileStats) + // upload the file let skylink; try {