Permalink
Browse files

Add time column

  • Loading branch information...
mirakui committed Oct 31, 2015
1 parent 52c4da5 commit a83ab8a12b8664889c2ac02a880e9ff93d3ffd9a
Showing with 2 additions and 1 deletion.
  1. +2 −1 5f/webapp/ruby/app.rb
View
@@ -14,6 +14,7 @@
require 'oj'
require 'oj_mimic_json'
require 'msgpack'
require 'time'
# bundle config build.pg --with-pg-config=<path to pg_config>
# bundle install
@@ -198,7 +199,7 @@ def fetch_http(headers, params, call_uri, conf)
$stderr.puts "[API CALL][HTTP][ERROR] #{method} #{call_uri} (#{"%.2f" % (e-s)}s, #{err.inspect}) #{headers.inspect}"
raise
end
$stderr.puts "logtype:api\tmethod:#{method}\turi:#{call_uri}\treqtime:#{((e-s)*1000).to_i}"
$stderr.puts "logtype:api\ttime:#{e.iso8601}\tmethod:#{method}\turi:#{call_uri}\treqtime:#{((e-s)*1000).to_i}"
JSON.parse(res.body)
end
end

0 comments on commit a83ab8a

Please sign in to comment.