Skip to content

Commit 2b51bd1

Browse files
committed
fix: Fix diagnostic logging for connection results in stream
1 parent 9ca4b98 commit 2b51bd1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/ldclient-rb/events.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class EventDispatcher
231231
def initialize(inbox, sdk_key, config, diagnostic_accumulator, event_sender)
232232
@sdk_key = sdk_key
233233
@config = config
234-
@diagnostic_accumulator = config.diagnostic_opt_out? ? nil : diagnostic_accumulator
234+
@diagnostic_accumulator = diagnostic_accumulator
235235
@event_sender = event_sender
236236
@sampler = LaunchDarkly::Impl::Sampler.new(Random.new)
237237

lib/ldclient-rb/stream.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class StreamProcessor
2525
def initialize(sdk_key, config, diagnostic_accumulator = nil)
2626
@sdk_key = sdk_key
2727
@config = config
28+
@diagnostic_accumulator = diagnostic_accumulator
2829
@data_source_update_sink = config.data_source_update_sink
2930
@feature_store = config.feature_store
3031
@initialized = Concurrent::AtomicBoolean.new(false)

0 commit comments

Comments
 (0)