mirror of
https://github.com/dergigi/boris.git
synced 2026-02-15 20:14:58 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user