Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Rename session event, scope to errors (#4761)

authored by

dan and committed by
GitHub
ce0bf867 7a476568

+6 -4
+4 -2
src/state/session/agent.ts
··· 12 12 import {getAge} from '#/lib/strings/time' 13 13 import {logger} from '#/logger' 14 14 import {snoozeEmailConfirmationPrompt} from '#/state/shell/reminders' 15 - import {addSessionEventLog} from './logging' 15 + import {addSessionErrorLog} from './logging' 16 16 import { 17 17 configureModerationForAccount, 18 18 configureModerationForGuest, ··· 195 195 const account = agentToSessionAccountOrThrow(agent) 196 196 agent.setPersistSessionHandler(event => { 197 197 onSessionChange(agent, account.did, event) 198 - addSessionEventLog(account.did, event) 198 + if (event !== 'create' && event !== 'update') { 199 + addSessionErrorLog(account.did, event) 200 + } 199 201 }) 200 202 return {agent, account} 201 203 }
+2 -2
src/state/session/logging.ts
··· 71 71 const MAX_SLICE_LENGTH = 1000 72 72 73 73 // Not gated. 74 - export function addSessionEventLog(did: string, event: AtpSessionEvent) { 74 + export function addSessionErrorLog(did: string, event: AtpSessionEvent) { 75 75 try { 76 76 if (!Statsig.initializeCalled() || !Statsig.getStableID()) { 77 77 return 78 78 } 79 - Statsig.logEvent('session:event', null, {did, event}) 79 + Statsig.logEvent('session:error', null, {did, event}) 80 80 } catch (e) { 81 81 console.error(e) 82 82 }