Updated scripts/thumbs.js

Warn users when verbose logging is disabled
This commit is contained in:
Bobby Wibowo 2020-04-19 21:48:56 +07:00
parent a6156da798
commit 48172b0805
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -58,6 +58,10 @@ self.getFiles = async directory => {
return thumb.slice(0, -extname.length) return thumb.slice(0, -extname.length)
}) })
console.log(`Found ${thumbs.length} existing thumbnails (may include placeholder symlinks).`)
if (!self.verbose)
console.log('Verbose logging disabled! Please be patient, this script may appear to be frozen but is actually working in the background\u2026')
const succeeded = [] const succeeded = []
let error = 0 let error = 0
let skipped = 0 let skipped = 0