Skip to content

Commit 136d4f3

Browse files
committed
Addresses client.transport access
1 parent 1591154 commit 136d4f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-model/lib/elasticsearch/model/indexing.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def delete_index!(options={})
281281
self.client.indices.delete index: target_index
282282
rescue Exception => e
283283
if e.class.to_s =~ /NotFound/ && options[:force]
284-
client.transport.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.transport.logger
284+
client.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.logger
285285
nil
286286
else
287287
raise e
@@ -308,7 +308,7 @@ def refresh_index!(options={})
308308
self.client.indices.refresh index: target_index
309309
rescue Exception => e
310310
if e.class.to_s =~ /NotFound/ && options[:force]
311-
client.transport.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.transport.logger
311+
client.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.logger
312312
nil
313313
else
314314
raise e

0 commit comments

Comments
 (0)