From 843314e47566a1544e51a5f2c8d76c2532470797 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 19:56:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20debug=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/getPatch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssn/getPatch.ts b/src/ssn/getPatch.ts index 5f2127a..ed5e808 100644 --- a/src/ssn/getPatch.ts +++ b/src/ssn/getPatch.ts @@ -41,7 +41,7 @@ export default async function getPatch(product: Product, from: number, to: numbe try { const fileStream = await getFileFromDisks(diskFilenames, { diskStart: file.diskNumberStart, offset: file.offset, storedSize: file.compressedSize }); const fileContents = extractFileStream(file, fileStream, true); - console.debug(await streamToArrayBuffer(fileContents)); + console.debug(file.name, file.compressedSize, await streamToArrayBuffer(fileContents)); //TODO: need to write to disk } catch (error) { console.error(`Could not extract file "${file.name}"`, error); @@ -53,7 +53,7 @@ export default async function getPatch(product: Product, from: number, to: numbe try { const fileStream = await getFileFromDisks(diskFilenames, { diskStart: file.diskNumberStart, offset: file.offset, storedSize: file.compressedSize }); const fileContents = extractFileStream(file, fileStream, true); - console.debug(await streamToArrayBuffer(fileContents)); + console.debug(file.name, file.compressedSize, await streamToArrayBuffer(fileContents)); //TODO: need to apply diffing, then write to disk } catch (error) { console.error(`Could not extract file "${file.name}"`, error);