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
Describe the bug
Setting the basicLogger to level: 'none' does not disable console logs in React Web using either launchdarkly-react-client-sdk OR launchdarkly-js-client-sdk (per the documentation here: https://docs.launchdarkly.com/sdk/features/logging#react-web)
To reproduce
import basicLogger into react using the launchdarkly-js-client-sdk (or the react version) import { basicLogger } from 'launchdarkly-js-client-sdk';
Set the options object with a logger property logger: basicLogger({level: 'none'})
I'm experiencing the same issue. We're using both the @launchdarkly/node-server-sdk and launchdarkly-js-client-sdk packages, for the node package this does seem to work:
Describe the bug
Setting the basicLogger to
level: 'none'
does not disable console logs in React Web using either launchdarkly-react-client-sdk OR launchdarkly-js-client-sdk (per the documentation here: https://docs.launchdarkly.com/sdk/features/logging#react-web)To reproduce
launchdarkly-js-client-sdk
(or the react version)import { basicLogger } from 'launchdarkly-js-client-sdk';
logger: basicLogger({level: 'none'})
Expected behavior
LaunchDarkly console logs should not appear
SDK version
3.2.0
Language version, developer tools
Node 17.3.1, webpack 5.66.0
OS/platform
Windows 10, Chrome 125
Additional context
asyncWithLDProvider
, does that make a difference for switching off loggging?'none'
option in the documentation for logging in the js sdk. Per the documentation, the React client sdk is supposed to follow the js. Per this issue regarding consoles,'none'
is supposed to work.The text was updated successfully, but these errors were encountered: