about summary refs log tree commit diff
path: root/src/state
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-10-17 12:54:05 -0700
committerGitHub <noreply@github.com>2024-10-17 12:54:05 -0700
commite9be8f4574ad5e2da145b24a2af4258fd4d7769a (patch)
treedf93413d85e3ce2f9580390033df9115957eb1cd /src/state
parent0d5af050d3c90172a07486961ea1180b240813ef (diff)
downloadvoidsky-e9be8f4574ad5e2da145b24a2af4258fd4d7769a.tar.zst
Disable feed debug gate due to EME (#5815)
Diffstat (limited to 'src/state')
-rw-r--r--src/state/session/logging.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/state/session/logging.ts b/src/state/session/logging.ts
index 7e1df500b..98de5a396 100644
--- a/src/state/session/logging.ts
+++ b/src/state/session/logging.ts
@@ -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)