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
+2
View File
@@ -33,6 +33,7 @@ function reconnect() {
reconnectTimer = setTimeout(() => {
if (backoffIdx === 0) {
// deno-lint-ignore no-console
console.log(
`%c Fresh %c Connection closed. Trying to reconnect...`,
"background-color: #86efac; color: black",
@@ -84,6 +85,7 @@ function handleMessage(e: MessageEvent) {
switch (data.type) {
case "initial-state": {
if (revision === 0) {
// deno-lint-ignore no-console
console.log(
`%c Fresh %c Connected to development server.`,
"background-color: #86efac; color: black",
+1
View File
@@ -481,6 +481,7 @@ function revivePartials(
const instance = ACTIVE_PARTIALS.get(partialName);
if (instance === undefined) {
// deno-lint-ignore no-console
console.warn(`Partial "${partialName}" not found. Skipping...`);
// Partial doesn't exist on the current page
} else {
+1
View File
@@ -74,6 +74,7 @@ export function assetInternal(path: string, buildId: string): string {
url.searchParams.set(ASSET_CACHE_BUST_KEY, buildId);
return url.pathname + url.search + url.hash;
} catch (err) {
// deno-lint-ignore no-console
console.warn(
`Failed to create asset() URL, falling back to regular path ('${path}'):`,
err,