Disable feed debug gate due to EME (#5815)

This commit is contained in:
Hailey
2024-10-17 12:54:05 -07:00
committed by GitHub
parent 0d5af050d3
commit e9be8f4574
4 changed files with 11 additions and 6 deletions
+6 -1
View File
@@ -2,6 +2,7 @@ import {AtpSessionData, AtpSessionEvent} from '@atproto/api'
import {sha256} from 'js-sha256'
import {Statsig} from 'statsig-react-native-expo'
import {IS_INTERNAL} from '#/lib/app-info'
import {Schema} from '../persisted'
import {Action, State} from './reducer'
import {SessionAccount} from './types'
@@ -93,9 +94,13 @@ export function addSessionDebugLog(log: Log) {
// Drop these logs for now.
return
}
if (!Statsig.checkGate('debug_session')) {
// DISABLING THIS GATE DUE TO EME @TODO EME-GATE
if (!IS_INTERNAL) {
return
}
// if (!Statsig.checkGate('debug_session')) {
// return
// }
const messageIndex = nextMessageIndex++
const {type, ...content} = log
let payload = JSON.stringify(content, replacer)