From e03163735ea98392b8a8fe9e0650d8426753da96 Mon Sep 17 00:00:00 2001 From: elpatron Date: Fri, 12 Jun 2026 12:10:40 +0200 Subject: [PATCH] chore(tides): remove debug console.logs from backend --- server/src/utils/openMeteoTides.ts | 10 ---------- server/src/utils/tideProvider.ts | 2 -- 2 files changed, 12 deletions(-) diff --git a/server/src/utils/openMeteoTides.ts b/server/src/utils/openMeteoTides.ts index 8a35aef..be37589 100644 --- a/server/src/utils/openMeteoTides.ts +++ b/server/src/utils/openMeteoTides.ts @@ -243,7 +243,6 @@ async function doGeocode(q: string): Promise { url.searchParams.set('count', '10') url.searchParams.set('language', 'de') - console.log(`[geocodePlace] Fetching URL: ${url.toString()}`); try { const data = await fetchJson<{ results?: GeocodingResult[] }>(url.toString()) const results = data.results ?? [] @@ -259,23 +258,14 @@ async function doGeocode(q: string): Promise { } export async function geocodePlace(query: string): Promise { - console.log(`[geocodePlace] query: "${query}" (length: ${query.length})`); - let match = await doGeocode(query) if (!match) { const fallbackQuery = replaceGermanDigraphs(query) if (fallbackQuery !== query) { - console.log(`[geocodePlace] No results for "${query}". Trying fallback query: "${fallbackQuery}"`); match = await doGeocode(fallbackQuery) } } - if (match) { - console.log(`[geocodePlace] Best match for "${query}": ${match.name} (${match.latitude}, ${match.longitude})`); - } else { - console.log(`[geocodePlace] No results found for "${query}"`); - } - return match } diff --git a/server/src/utils/tideProvider.ts b/server/src/utils/tideProvider.ts index e0bbe65..a886822 100644 --- a/server/src/utils/tideProvider.ts +++ b/server/src/utils/tideProvider.ts @@ -98,7 +98,6 @@ export async function fetchTidesForPlace(query: string): Promise normalizeForMatching(s.name).startsWith(normQuery)) } if (match) { - console.log(`[tideProvider] Match found in BSH station index for "${query}": ${match.name} (${match.id})`) return await fetchTidesForStation(match.id) } } catch (err) { @@ -116,7 +115,6 @@ export async function fetchTidesForPlace(query: string): Promise