diff --git a/lib/chewy/config.rb b/lib/chewy/config.rb index 1ec687e1..fdae4ae4 100644 --- a/lib/chewy/config.rb +++ b/lib/chewy/config.rb @@ -70,12 +70,12 @@ def initialize end def transport_logger=(logger) - Chewy.client.transport.transport.logger = logger + Chewy.client.transport.logger = logger @transport_logger = logger end def transport_tracer=(tracer) - Chewy.client.transport.transport.tracer = tracer + Chewy.client.transport.tracer = tracer @transport_tracer = tracer end diff --git a/spec/chewy/config_spec.rb b/spec/chewy/config_spec.rb index 1d0321d8..f9d31134 100644 --- a/spec/chewy/config_spec.rb +++ b/spec/chewy/config_spec.rb @@ -22,7 +22,7 @@ specify do expect { subject.transport_logger = logger } - .to change { Chewy.client.transport.transport.logger }.to(logger) + .to change { Chewy.client.transport.logger }.to(logger) end specify do expect { subject.transport_logger = logger } @@ -40,7 +40,7 @@ specify do expect { subject.transport_tracer = tracer } - .to change { Chewy.client.transport.transport.tracer }.to(tracer) + .to change { Chewy.client.transport.tracer }.to(tracer) end specify do expect { subject.transport_tracer = tracer }