chore: remove debug trace logs (#2545)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user