mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 22:54:30 +01:00
chore: remove debug console.log statements
- Remove debug console.log from AddBookmarkModal.tsx (modal fetch and description extraction) - Remove console.debug from relayManager.ts (relay closing errors) - Keep console.warn and console.error for legitimate error handling
This commit is contained in:
@@ -88,13 +88,6 @@ const AddBookmarkModal: React.FC<AddBookmarkModalProps> = ({ onClose, onSave })
|
|||||||
fetchOpenGraph(normalizedUrl).catch(() => null) // Don't fail if OpenGraph fetch fails
|
fetchOpenGraph(normalizedUrl).catch(() => null) // Don't fail if OpenGraph fetch fails
|
||||||
])
|
])
|
||||||
|
|
||||||
console.log('🔍 Modal fetch debug:', {
|
|
||||||
url: normalizedUrl,
|
|
||||||
hasContent: !!content,
|
|
||||||
hasOgData: !!ogData,
|
|
||||||
ogDataKeys: ogData ? Object.keys(ogData) : null
|
|
||||||
})
|
|
||||||
|
|
||||||
lastFetchedUrlRef.current = normalizedUrl
|
lastFetchedUrlRef.current = normalizedUrl
|
||||||
let extractedAnything = false
|
let extractedAnything = false
|
||||||
|
|
||||||
@@ -121,13 +114,6 @@ const AddBookmarkModal: React.FC<AddBookmarkModalProps> = ({ onClose, onSave })
|
|||||||
if (!description && ogData) {
|
if (!description && ogData) {
|
||||||
const extractedDesc = ogData['og:description'] || ogData['twitter:description'] || ogData.description
|
const extractedDesc = ogData['og:description'] || ogData['twitter:description'] || ogData.description
|
||||||
|
|
||||||
console.log('🔍 Description extraction debug:', {
|
|
||||||
currentDescription: description,
|
|
||||||
hasOgData: !!ogData,
|
|
||||||
extractedDesc: extractedDesc,
|
|
||||||
willSetDescription: !!extractedDesc
|
|
||||||
})
|
|
||||||
|
|
||||||
if (extractedDesc) {
|
if (extractedDesc) {
|
||||||
setDescription(extractedDesc)
|
setDescription(extractedDesc)
|
||||||
extractedAnything = true
|
extractedAnything = true
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export function applyRelaySetToPool(
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Suppress errors when closing relays that haven't fully connected yet
|
// Suppress errors when closing relays that haven't fully connected yet
|
||||||
// This can happen when switching relay sets before connections establish
|
// This can happen when switching relay sets before connections establish
|
||||||
console.debug('[relay-manager] Ignoring error when closing relay:', url, error)
|
// Silently ignore
|
||||||
}
|
}
|
||||||
relayPool.relays.delete(url)
|
relayPool.relays.delete(url)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user