Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Logger configuration throws error 'Received put event' #267

Description

@apptrench

Describe the bug
I am configuring logger when initializing LaunchDarkly in my node.js application. This is to avoid logs sent to console.error by default. After the configuration, I am observing an extra error log printed 'Received put event'

To reproduce
Configure LaunchDarkly by using the code -

 const options: ld.LDOptions = {
logger: {
error: (...args: never[]) => console.error(...args),
warn: (...args: never[]) => console.warn(...args),
info: (...args: never[]) => console.info(...args),
debug: (...args: never[]) => console.error(...args),
},
};
LaunchDarkly.init('sdk-key', options);

This prints the following log messages -

Initializing stream processor to receive feature flag updates
Opened LaunchDarkly stream connection
Received put event

Expected behavior
There should be two log statements -

Initializing stream processor to receive feature flag updates
Opened LaunchDarkly stream connection

Logs
If applicable, add any log output related to your problem.

SDK version
6.4.3

Language version, developer tools
Node.js with TypeScript

OS/platform
AWS Lambda

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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