Log Update Info

This commit is contained in:
Ben C 2025-06-28 20:41:33 -04:00
parent 4c2ea4d362
commit f138009258
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -80,6 +80,7 @@ export async function fetchMods(
: [];
if (!requiresUpdate) {
console.log("Skipping mod update for", slug);
return {
...previousMod,
alpha: modInfo.alpha,
@ -113,6 +114,8 @@ export async function fetchMods(
release.assets[0].browser_download_url.endsWith(RELEASE_EXTENSION)
);
console.log("Release list for", slug, " ", releaseList);
const latestRelease = releaseList[0];
if (!latestRelease) {

View File

@ -178,7 +178,7 @@ async function downloadImage(
const image = await response.arrayBuffer();
await fsp.writeFile(fullImagePath, Buffer.from(image));
console.log(`Downloaded image from ${imageUrl} to ${fullImagePath}`);
//console.log(`Downloaded image from ${imageUrl} to ${fullImagePath}`);
return fullImagePath;
} catch (error) {
console.error(`Failed to download image from url ${imageUrl}: ${error}`);