Remove some logs
This commit is contained in:
@@ -43,9 +43,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"src/analytics/PassiveAnalytics.tsx": {
|
"src/analytics/PassiveAnalytics.tsx": {
|
||||||
"@typescript-eslint/no-explicit-any": {
|
|
||||||
"count": 1
|
|
||||||
},
|
|
||||||
"react-hooks/purity": {
|
"react-hooks/purity": {
|
||||||
"count": 1
|
"count": 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import {useEffect, useRef} from 'react'
|
|||||||
|
|
||||||
import {getCurrentState, onAppStateChange} from '#/lib/appState'
|
import {getCurrentState, onAppStateChange} from '#/lib/appState'
|
||||||
import {useAnalytics} from '#/analytics'
|
import {useAnalytics} from '#/analytics'
|
||||||
import {Features, features} from '#/analytics/features'
|
|
||||||
import {IS_DEV, IS_TESTFLIGHT} from '#/env'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tracks passive analytics like app foreground/background time.
|
* Tracks passive analytics like app foreground/background time.
|
||||||
@@ -27,19 +25,19 @@ export function PassiveAnalytics() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_DEV || IS_TESTFLIGHT) {
|
// if (IS_DEV || IS_TESTFLIGHT) {
|
||||||
const feats = Object.values(Features).reduce(
|
// const feats = Object.values(Features).reduce(
|
||||||
(acc, feat) => {
|
// (acc, feat) => {
|
||||||
acc[feat] = features.evalFeature(feat)
|
// acc[feat] = features.evalFeature(feat)
|
||||||
return acc
|
// return acc
|
||||||
},
|
// },
|
||||||
{} as Record<Features, any>,
|
// {} as Record<Features, any>,
|
||||||
)
|
// )
|
||||||
ax.logger.info('FEATURES', {
|
// ax.logger.info('FEATURES', {
|
||||||
features: feats,
|
// features: feats,
|
||||||
definitions: features.getFeatures(),
|
// definitions: features.getFeatures(),
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
return () => sub.remove()
|
return () => sub.remove()
|
||||||
}, [ax])
|
}, [ax])
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {BskyAgent} from '@atproto/api'
|
import {BskyAgent} from '@atproto/api'
|
||||||
|
|
||||||
import {logger} from '#/logger'
|
|
||||||
import {device} from '#/storage'
|
import {device} from '#/storage'
|
||||||
|
|
||||||
export const BR_LABELER = 'did:plc:ekitcvx7uwnauoqy5oest3hm' // Brazil
|
export const BR_LABELER = 'did:plc:ekitcvx7uwnauoqy5oest3hm' // Brazil
|
||||||
@@ -77,8 +76,6 @@ export function configureAdditionalModerationAuthorities() {
|
|||||||
if (geolocation?.countryCode) {
|
if (geolocation?.countryCode) {
|
||||||
// overwrite with only those necessary
|
// overwrite with only those necessary
|
||||||
additionalLabelers = MODERATION_AUTHORITIES[geolocation.countryCode] ?? []
|
additionalLabelers = MODERATION_AUTHORITIES[geolocation.countryCode] ?? []
|
||||||
} else {
|
|
||||||
logger.info(`no geolocation, cannot apply mod authorities`)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
@@ -89,10 +86,5 @@ export function configureAdditionalModerationAuthorities() {
|
|||||||
new Set([...BskyAgent.appLabelers, ...additionalLabelers]),
|
new Set([...BskyAgent.appLabelers, ...additionalLabelers]),
|
||||||
)
|
)
|
||||||
|
|
||||||
logger.info(`applying mod authorities`, {
|
|
||||||
additionalLabelers,
|
|
||||||
appLabelers,
|
|
||||||
})
|
|
||||||
|
|
||||||
BskyAgent.configure({appLabelers})
|
BskyAgent.configure({appLabelers})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user