Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more debugging of curl call

  • Loading branch information...
commit 9ea8a45daac90e1dac747053180c0422eda8ff35 1 parent bb2552e
Missy authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 squirrel/replay.rb
View
11 squirrel/replay.rb
@@ -173,12 +173,13 @@ def execute_query(query, data)
#puts "curl -s -XGET #{Settings.host}:#{Settings.port}/#{data['index']}/_search/ -d '#{query}'"
cmd = build_curl_command_string(query, data)
curl_result = %x(#{cmd})
+ puts curl_result.inspect
#curl_result = `curl -s -XGET '#{@host}:#{@port}/#{data['index']}/_search/' -d '#{query}'`
- data['new_end_time'] = Time.now.to_f * 1000
- data['new_duration'] = data['new_end_time'] - data['new_start_time']
- data['original_dur'] = data['took']
- data = data.merge(JSON.parse(curl_result))
- output(query, data)
+ #data['new_end_time'] = Time.now.to_f * 1000
+ #data['new_duration'] = data['new_end_time'] - data['new_start_time']
+ #data['original_dur'] = data['took']
+ #data = data.merge(JSON.parse(curl_result))
+ #output(query, data)
else
puts "error don't know search type, please throw an exception here"
end
Please sign in to comment.
Something went wrong with that request. Please try again.