File tree 1 file changed +2
-2
lines changed
elasticsearch-model/lib/elasticsearch/model
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ def delete_index!(options={})
281
281
self . client . indices . delete index : target_index
282
282
rescue Exception => e
283
283
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
285
285
nil
286
286
else
287
287
raise e
@@ -308,7 +308,7 @@ def refresh_index!(options={})
308
308
self . client . indices . refresh index : target_index
309
309
rescue Exception => e
310
310
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
312
312
nil
313
313
else
314
314
raise e
You can’t perform that action at this time.
0 commit comments