220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
# File 'lib/elasticsearch/api/utils.rb', line 220
def __report_unsupported_method(name)
message = "[!] You are using unsupported method [#{name}]"
if source = caller && caller.last
message += " in `#{source}`"
end
message += ". This method is not supported in the version you're using: #{Elasticsearch::API::VERSION}, and will be removed in the next release. Suppress this warning by the `-WO` command line flag."
if STDERR.tty?
Kernel.warn "\e[31;1m#{message}\e[0m"
else
Kernel.warn message
end
end
|