Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Log error statuses from failed resume session calls (#4174)

* Add log to track how resume fails

* Use safe field name

* Better log

* Properly catch

authored by

Eric Bailey and committed by
GitHub
6d647551 e5fc0baa

+11 -1
+11 -1
src/state/session/agent.ts
··· 53 53 agent.session = prevSession 54 54 if (!storedAccount.deactivated) { 55 55 // Intentionally not awaited to unblock the UI: 56 - networkRetry(3, () => agent.resumeSession(prevSession)) 56 + networkRetry(3, () => agent.resumeSession(prevSession)).catch( 57 + (e: any) => { 58 + logger.error(`networkRetry failed to resume session`, { 59 + status: e?.status || 'unknown', 60 + // this field name is ignored by Sentry scrubbers 61 + safeMessage: e?.message || 'unknown', 62 + }) 63 + 64 + throw e 65 + }, 66 + ) 57 67 } 58 68 } 59 69