launchdarkly / js-core

LaunchDarkly monorepo for JavaScript SDKs
Other
14 stars 16 forks source link

fix: Log errors when there is no error event handler. #495

Closed kinyoklion closed 3 months ago

kinyoklion commented 3 months ago

When there are no error event handlers the server SDKs should log the errors instead.

This behavior was missed during the typescript re-write.

We may want to consider if we always want to log errors, but I understand the logic of this. If you are listening to this, then you may also be logging it, and if you are not logging it, then you are at least getting the event.

I imagine most consumers are not using the error events.