Improved error logging.

This commit is contained in:
Patrick Fic
2022-05-12 16:10:27 -07:00
parent 46ea56feaf
commit 539d35203e
6 changed files with 16 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ export default async function GenerateThumbnail(
}
return path.relative(path.dirname(file), thumbPath);
} catch (err) {
console.error("Error when genenerating thumbnail:", thumbPath);
logger.error("Error when genenerating thumbnail:", thumbPath, err);
return path.relative(path.dirname(file), thumbPath);
}
}