Lloyd Banks
Lloyd Banks

Reputation: 36689

LaunchDarkly React SDK - How Do I Disable Console Logs?

I am currently using the LaunchDarkly React SDK. I see the below on every page of my app:

enter image description here

How do I disable these console logs?

Upvotes: 1

Views: 613

Answers (2)

Petru
Petru

Reputation: 1

Source: https://launchdarkly.github.io/js-client-sdk/functions/basicLogger.html Better set it to error

import { basicLogger } from 'launchdarkly-js-client-sdk';
 const ldOptions = {
    logger: ld.basicLogger({ level: 'warn' }),
  };

Upvotes: 0

Lloyd Banks
Lloyd Banks

Reputation: 36689

Talked to LD support and you could set LDLogLevel to none, ie LDLogLevel: none

Upvotes: 0

Related Questions