Better loggin
This commit is contained in:
parent
c99f2209fc
commit
7ec158e547
|
@ -67,7 +67,7 @@ scan2paperless \\
|
||||||
do {
|
do {
|
||||||
const fileName = `${tempDir}/${getRandomString()}.jpg`;
|
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}`);
|
console.log(`Writing to ${fileName}`);
|
||||||
|
|
||||||
const scanimageProcess = Deno.run({
|
const scanimageProcess = Deno.run({
|
||||||
|
@ -122,6 +122,7 @@ scan2paperless \\
|
||||||
pagesScanned++;
|
pagesScanned++;
|
||||||
|
|
||||||
if (!cancelled) {
|
if (!cancelled) {
|
||||||
|
console.log(`Finished scanning page ${pagesScanned}`);
|
||||||
files.push(fileName);
|
files.push(fileName);
|
||||||
}
|
}
|
||||||
} while(!cancelled && (automatic ? pagesScanned < pagesToScan : true));
|
} while(!cancelled && (automatic ? pagesScanned < pagesToScan : true));
|
||||||
|
|
Loading…
Reference in a new issue