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
+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);
}