a very good jj gui
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: remove debug console.log statements and unused error handling

+5 -13
+5 -12
apps/desktop/src/hooks/useTauriLiveStoreSync.ts
··· 25 25 export function useTauriLiveStoreSync(): void { 26 26 useEffect(() => { 27 27 if (!isTauri) { 28 - console.log("[TauriRelay] Not in Tauri, skipping"); 29 28 return; 30 29 } 31 30 ··· 41 40 if (!mounted || event.data.type !== "hydrate") return; 42 41 43 42 const { afterSequence, storeId } = event.data; 44 - console.log("[TauriRelay] Hydrating from seq:", afterSequence); 45 43 46 44 try { 47 45 const channel = new Channel<PersistedEvent | { done: true }>(); 48 46 49 47 channel.onmessage = (msg) => { 50 48 if (!mounted) return; 51 - if ("done" in msg) { 52 - console.log("[TauriRelay] Hydration complete"); 53 - } else { 54 - console.log("[TauriRelay] Hydrating:", msg.name, "seq:", msg.sequence); 49 + if (!("done" in msg)) { 55 50 syncChannel.postMessage(msg); 56 51 } 57 52 }; ··· 61 56 channel, 62 57 afterSequence, 63 58 }); 64 - } catch (err) { 65 - console.error("[TauriRelay] Hydration failed:", err); 59 + } catch { 60 + // Hydration failed - silently ignore 66 61 } 67 62 }; 68 63 ··· 71 66 try { 72 67 unlistenEvent = await listen<PersistedEvent>("livestore:event", (event) => { 73 68 if (!mounted) return; 74 - console.log("[TauriRelay] Relaying:", event.payload.name, "seq:", event.payload.sequence); 75 69 syncChannel.postMessage(event.payload); 76 70 }); 77 - console.log("[TauriRelay] Listening to livestore:event"); 78 - } catch (err) { 79 - console.error("[TauriRelay] Setup failed:", err); 71 + } catch { 72 + // Setup failed - silently ignore 80 73 } 81 74 } 82 75
-1
apps/desktop/src/livestore/tauri-adapter.ts
··· 132 132 await invoke("persist_events", { storeId, events: serialized }); 133 133 lastPersistedSequence = eventsToFlush[eventsToFlush.length - 1].sequence; 134 134 } catch (error) { 135 - console.error("Failed to persist events:", error); 136 135 // Re-add failed events to front of queue 137 136 pendingEvents = [...eventsToFlush, ...pendingEvents]; 138 137 throw error;