Log cleanup (#9029)

* change warn to log

* networkerror check on failed to check unread notifications

* rm both logs

* tweak imports
This commit is contained in:
Samuel Newman
2025-09-11 21:23:16 +03:00
committed by GitHub
parent 836d16fec9
commit 6a4c56dfa9
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ export function getNotificationPayload(
return payload
} else {
if (payload) {
notyLogger.warn('getNotificationPayload: received unknown payload', {
notyLogger.debug('getNotificationPayload: received unknown payload', {
payload,
identifier: e.request.identifier,
})
+2 -5
View File
@@ -9,10 +9,9 @@ import EventEmitter from 'eventemitter3'
import BroadcastChannel from '#/lib/broadcast'
import {resetBadgeCount} from '#/lib/notifications/notifications'
import {logger} from '#/logger'
import {useModerationOpts} from '#/state/preferences/moderation-opts'
import {truncateAndInvalidate} from '#/state/queries/util'
import {useAgent, useSession} from '#/state/session'
import {useModerationOpts} from '../../preferences/moderation-opts'
import {truncateAndInvalidate} from '../util'
import {RQKEY as RQKEY_NOTIFS} from './feed'
import {type CachedFeedPage, type FeedPage} from './types'
import {fetchPage} from './util'
@@ -189,8 +188,6 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
truncateAndInvalidate(queryClient, RQKEY_NOTIFS('mentions'))
}
broadcast.postMessage({event: unreadCountStr})
} catch (e) {
logger.warn('Failed to check unread notifications', {error: e})
} finally {
isFetchingRef.current = false
}