perf: remove excessive debug logging for better performance

- Remove debug logs from highlight creation, publishing, and UI rendering
- Keep only essential error logging
- Improves performance by reducing console spam
- Flight mode detection still works via fallback mechanisms
This commit is contained in:
Gigi
2025-10-31 00:12:04 +01:00
parent 29eed3395f
commit 5013ccc552
4 changed files with 0 additions and 76 deletions

View File

@@ -321,17 +321,6 @@ export const HighlightItem: React.FC<HighlightItemProps> = ({
}
}
// Debug: Log for flight mode highlights
if (highlight.id && (isLocalOnly === true || publishedRelays.some(url => url.includes('localhost')))) {
console.log('🔍 [HIGHLIGHT-UI-DEBUG] Flight mode highlight:', {
highlightId: highlight.id,
isLocalOnly,
publishedRelays,
highlightPublishedRelays: highlight.publishedRelays,
highlightIsLocalOnly: highlight.isLocalOnly,
willShowAirplane: isLocalOnly === true
})
}
// If isLocalOnly is true (from any fallback), show airplane icon
if (isLocalOnly === true) {