Better loggin

main
Benjamin Bädorf 2023-02-08 17:45:29 +01:00
parent c99f2209fc
commit 7ec158e547
No known key found for this signature in database
GPG Key ID: 4406E80E13CD656C
1 changed files with 2 additions and 1 deletions

View File

@ -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));