Skip to content

Unable to turn off logging #175

Closed
Closed
@mthorne-godaddy

Description

@mthorne-godaddy

👋

As per the docs, I've done the following:

import { createInstance, ReactSDKClient, setLogger, setLogLevel } from '@optimizely/react-sdk'

...
// To turn off logging, call setLogger with null
optimizelySDK.setLogger(null);

However, I'm still getting these console log warnings:

[OPTIMIZELY] - WARN  2022-07-27T10:01:02.068Z Invalid eventBatchSize undefined, defaulting to 10

How do you completely disable logging?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions