You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're seeing excessive logging, even with enableSessionReplay: false. Is there an ability to turn this off or is it a bug? We tried debug(false) with no success.
How to reproduce
functioninitPosthog(): TPostHog|undefined{try{if(process.env.EXPO_PUBLIC_POSTHOG_API_KEY&&process.env.EXPO_PUBLIC_POSTHOG_HOST_URL){constposthog=newPostHog(process.env.EXPO_PUBLIC_POSTHOG_API_KEY,{host: process.env.EXPO_PUBLIC_POSTHOG_HOST_URL,enableSessionReplay: false,})//NOTE: Debug reduces logging, see https://github.com/PostHog/posthog-js/issues/1387posthog.debug(false)returnposthog}else{returnundefined}}catch(error){// NOTE: Only log since analytics failing to initialize should not block anythingLOG.error('Failed to initialize PostHog',error)returnundefined}}
The text was updated successfully, but these errors were encountered:
Hello @seanghods thanks for the issue. Session replay config: ... is only displayed because session replay is enabled in your project config.
I think it makes more sense to address logging in this issue since it'll improve all the other noisy loggings as well.
For a quick fix at least, I opened this PR
Bug description
We're seeing excessive logging, even with
enableSessionReplay: false
. Is there an ability to turn this off or is it a bug? We tried debug(false) with no success.How to reproduce
The text was updated successfully, but these errors were encountered: