From 3ac4fed3fd0a9c4801284dd2b70ea95fc695e359 Mon Sep 17 00:00:00 2001 From: Tejas Dinkar Date: Mon, 7 Oct 2024 10:43:41 +0530 Subject: [PATCH] Remove Debug Statement when SessionReplay doesn't load This brings the structure in line with the other optional dependencies, ensuring that logs stay quiet --- posthog-react-native/src/optional/OptionalSessionReplay.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/posthog-react-native/src/optional/OptionalSessionReplay.ts b/posthog-react-native/src/optional/OptionalSessionReplay.ts index 841ff494..45f4faa4 100644 --- a/posthog-react-native/src/optional/OptionalSessionReplay.ts +++ b/posthog-react-native/src/optional/OptionalSessionReplay.ts @@ -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) { }