From 7ec158e547377bbe3a6dd7b5a2f6e141834d4c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Wed, 8 Feb 2023 17:45:29 +0100 Subject: [PATCH] Better loggin --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 5c54644..09493d0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -67,7 +67,7 @@ scan2paperless \\ do { const fileName = `${tempDir}/${getRandomString()}.jpg`; - console.log(`Start scanning page ${pagesScanned + 1}`); + console.log(`Start scanning page ${pagesScanned + 1}/${automatic ? pagesToScan : '?' }`); console.log(`Writing to ${fileName}`); const scanimageProcess = Deno.run({ @@ -122,6 +122,7 @@ scan2paperless \\ pagesScanned++; if (!cancelled) { + console.log(`Finished scanning page ${pagesScanned}`); files.push(fileName); } } while(!cancelled && (automatic ? pagesScanned < pagesToScan : true));