Skip to content

Commit

Permalink
Remove Debug Statement when SessionReplay doesn't load
Browse files Browse the repository at this point in the history
This brings the structure in line with the other optional dependencies, ensuring that logs stay quiet
  • Loading branch information
gja authored Oct 7, 2024
1 parent 595f757 commit 3ac4fed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions posthog-react-native/src/optional/OptionalSessionReplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ try {
web: undefined,
default: require('posthog-react-native-session-replay'), // Only Android and iOS
})
} catch (e) {
// do nothing
console.warn('PostHog Debug', `Error loading posthog-react-native-session-replay: ${e}`)
}
} catch (e) { }

0 comments on commit 3ac4fed

Please sign in to comment.