chore: remove debug trace logs (#2545)

This commit is contained in:
Marvin Hagemeister
2024-06-25 10:08:48 +02:00
committed by GitHub
parent 49839079a4
commit 0f6b4f624f
22 changed files with 150 additions and 8 deletions
+1
View File
@@ -15,6 +15,7 @@ export default function CopyArea(props: { code: string }) {
copied.value = true;
} catch (error) {
copied.value = false;
// deno-lint-ignore no-console
console.error((error && error.message) || "Copy failed");
}
}
+2
View File
@@ -16,6 +16,7 @@ function ga4(
if (GA4_MEASUREMENT_ID === undefined) {
if (!showedMissingEnvWarning) {
showedMissingEnvWarning = true;
// deno-lint-ignore no-console
console.warn(
"GA4_MEASUREMENT_ID environment variable not set. Google Analytics reporting disabled.",
);
@@ -81,6 +82,7 @@ function ga4(
await report.send();
}).catch((err) => {
// deno-lint-ignore no-console
console.error(err);
});
}
+4
View File
@@ -6,16 +6,19 @@ const url = Deno.args[0];
const id = Deno.args[1];
if (Deno.args.length == 0) {
// deno-lint-ignore no-console
console.log("Usage: screenshot <url> <id>");
Deno.exit(0);
}
if (!(url.match(/^http[s]?:\/\//)) || !url) {
// deno-lint-ignore no-console
console.log("Provided URL is Broken or Wrong");
Deno.exit(0);
}
if (!id) {
// deno-lint-ignore no-console
console.log("Provide id to Process");
Deno.exit(0);
}
@@ -31,6 +34,7 @@ const raw = await page.screenshot();
await browser.close();
if (!(raw instanceof Uint8Array)) {
// deno-lint-ignore no-console
console.log("Invalid Image");
Deno.exit(0);
}