Don't need to be logging upstream errors (#9260)
This commit is contained in:
@@ -11,7 +11,6 @@ import {type AppBskyFeedDefs} from '@atproto/api'
|
|||||||
import throttle from 'lodash.throttle'
|
import throttle from 'lodash.throttle'
|
||||||
|
|
||||||
import {PROD_FEEDS, STAGING_FEEDS} from '#/lib/constants'
|
import {PROD_FEEDS, STAGING_FEEDS} from '#/lib/constants'
|
||||||
import {isNetworkError} from '#/lib/hooks/useCleanError'
|
|
||||||
import {Logger} from '#/logger'
|
import {Logger} from '#/logger'
|
||||||
import {
|
import {
|
||||||
type FeedSourceFeedInfo,
|
type FeedSourceFeedInfo,
|
||||||
@@ -129,11 +128,7 @@ export function useFeedFeedback(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.catch((e: any) => {
|
.catch(() => {}) // ignore upstream errors
|
||||||
if (!isNetworkError(e)) {
|
|
||||||
logger.warn('Failed to send feed interactions', {error: e})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// Send to Statsig
|
// Send to Statsig
|
||||||
if (aggregatedStats.current === null) {
|
if (aggregatedStats.current === null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user