Skip to content

Commit d638615

Browse files
committed
Remove debug statements, use console.warn to print warning
1 parent 2df9d67 commit d638615

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/utils/i18n.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,8 @@ export function getTranslatedContentLink(collection, i18nId, lang, entries) {
8787
const langPrefix = lang == defaultLang ? "/" : "/" + lang + "/";
8888
const collectionPrefix = collection === "articles" ? "" : `${collection}/`;
8989
const prefix = langPrefix + collectionPrefix;
90-
console.log(
91-
i18nId,
92-
collection,
93-
i18nId === "index" ? prefix : prefix + entry.data.localSlug,
94-
);
90+
9591
if (entry) {
96-
console.log(i18nId === "index" ? prefix : prefix + entry.data.localSlug);
9792
return i18nId === "index" ? prefix : prefix + entry.data.localSlug;
9893
}
9994
}

src/utils/og-image.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ export async function generateOgImage(collection, assigns, lang) {
9292
const t = await template(collection, assigns, lang);
9393

9494
return satori(t, opts).catch((error) => {
95-
console.log(error, "Creating OG Image failed");
95+
console.warn(error, "Creating OG Image failed");
9696
});
9797
}

0 commit comments

Comments
 (0)