From a566f41d66afde392b84ff155cc1c524f2d79ac4 Mon Sep 17 00:00:00 2001 From: Hank Date: Mon, 6 Jul 2026 11:27:14 -0700 Subject: [PATCH] Remove [CAM] debug logging; default HTTP request logging off MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Camera recenter-on-search confirmed fixed (view-lock). Strip the temporary trace logs; keep viewport tracking (needed for the fix). HTTP request logging now defaults off — still toggleable in Account > Log requests. Co-Authored-By: Claude Fable 5 --- app/app.json | 2 +- app/src/screens/MapScreen.tsx | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/app/app.json b/app/app.json index cc059ed..9191542 100644 --- a/app/app.json +++ b/app/app.json @@ -46,7 +46,7 @@ "mapStyleUrl": "https://tiles.openfreemap.org/styles/liberty", "mapStyleUrlDark": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json", "unifiedPushDefaultDistributor": "io.heckel.ntfy", - "debugHttp": true + "debugHttp": false } } } diff --git a/app/src/screens/MapScreen.tsx b/app/src/screens/MapScreen.tsx index f8ca745..8e5ea70 100644 --- a/app/src/screens/MapScreen.tsx +++ b/app/src/screens/MapScreen.tsx @@ -81,7 +81,6 @@ export function MapScreen() { useEffect(() => { if (mapReady && initialCenter && !positioned.current) { positioned.current = true; - console.log('[CAM] initial-positioning ->', JSON.stringify(initialCenter)); cameraRef.current?.setCamera?.({ centerCoordinate: [initialCenter.longitude, initialCenter.latitude], zoomLevel: initialCenter === DEFAULT_CENTER ? DEFAULT_ZOOM : 14, @@ -135,7 +134,6 @@ export function MapScreen() { setStatus('No location fix yet — GPS may be unavailable (e.g. indoors).'); return; } - console.log('[CAM] goToMyLocation setCamera ->', JSON.stringify(c)); cameraRef.current?.setCamera?.({ centerCoordinate: [c.longitude, c.latitude], zoomLevel: 15, @@ -150,7 +148,6 @@ export function MapScreen() { setStatus('No saved location yet — enable location once to cache it.'); return; } - console.log('[CAM] searchLastKnown setCamera ->', JSON.stringify(last)); cameraRef.current?.setCamera?.({ centerCoordinate: [last.longitude, last.latitude], zoomLevel: 15, @@ -214,22 +211,13 @@ export function MapScreen() { style={styles.map} mapStyle={mapStyle} rotateEnabled={false} - onDidFinishLoadingMap={() => { - console.log('[CAM] onDidFinishLoadingMap (mapReady already', mapReady, ')'); - setMapReady(true); - }} + onDidFinishLoadingMap={() => setMapReady(true)} onRegionDidChange={(f: any) => { const c = f?.geometry?.coordinates; const z = f?.properties?.zoomLevel; if (Array.isArray(c) && c.length === 2) { viewRef.current = { center: [c[0], c[1]], zoom: typeof z === 'number' ? z : 14 }; } - console.log( - '[CAM] regionDidChange center=', - JSON.stringify(c), - 'ui=', - f?.properties?.isUserInteraction, - ); }} > {cameraEl}