Bluesky app fork with some witchin' additions 💫

Log cleanup (#9029)

* change warn to log

* networkerror check on failed to check unread notifications

* rm both logs

* tweak imports

authored by samuel.fm and committed by

GitHub 6a4c56df 836d16fe

+3 -6
+1 -1
src/lib/hooks/useNotificationHandler.ts
··· 386 386 return payload 387 387 } else { 388 388 if (payload) { 389 - notyLogger.warn('getNotificationPayload: received unknown payload', { 389 + notyLogger.debug('getNotificationPayload: received unknown payload', { 390 390 payload, 391 391 identifier: e.request.identifier, 392 392 })
+2 -5
src/state/queries/notifications/unread.tsx
··· 9 9 10 10 import BroadcastChannel from '#/lib/broadcast' 11 11 import {resetBadgeCount} from '#/lib/notifications/notifications' 12 - import {logger} from '#/logger' 12 + import {useModerationOpts} from '#/state/preferences/moderation-opts' 13 + import {truncateAndInvalidate} from '#/state/queries/util' 13 14 import {useAgent, useSession} from '#/state/session' 14 - import {useModerationOpts} from '../../preferences/moderation-opts' 15 - import {truncateAndInvalidate} from '../util' 16 15 import {RQKEY as RQKEY_NOTIFS} from './feed' 17 16 import {type CachedFeedPage, type FeedPage} from './types' 18 17 import {fetchPage} from './util' ··· 189 188 truncateAndInvalidate(queryClient, RQKEY_NOTIFS('mentions')) 190 189 } 191 190 broadcast.postMessage({event: unreadCountStr}) 192 - } catch (e) { 193 - logger.warn('Failed to check unread notifications', {error: e}) 194 191 } finally { 195 192 isFetchingRef.current = false 196 193 }