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