From 10edc331a508804958180a31c6e34566e949ad0b Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sun, 27 Sep 2026 11:21:54 +0200 Subject: [PATCH] fix: keep device sync's notes out of the warning toast of debug builds #34 --- src/device-sync/task.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/device-sync/task.ts b/src/device-sync/task.ts index cb0f1009..e766514b 100644 --- a/src/device-sync/task.ts +++ b/src/device-sync/task.ts @@ -133,8 +133,11 @@ export function createTaskDeps(): EngineDeps { useDeviceSyncStore.getState().recordKnownState(registryId, jmapAccountId, type, state); }, notifyAuthProblem, + // Notes like "account d left out" only inform; an exception is worth a + // warning (in debug builds every warning puts LogBox over the app). log: (message, detail) => { - console.warn(`[device-sync] ${message}`, detail instanceof Error ? detail.message : (detail ?? '')); + if (detail instanceof Error) console.warn(`[device-sync] ${message}`, detail.message); + else console.log(`[device-sync] ${message}`, detail ?? ''); }, }; }