Permalink
Browse files

change reqtime format

  • Loading branch information...
mirakui committed Oct 31, 2015
1 parent a83ab8a commit 45358a656896544998dcb6067431d63c511160d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 5f/webapp/ruby/app.rb
View
@@ -199,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\ttime:#{e.iso8601}\tmethod:#{method}\turi:#{call_uri}\treqtime:#{((e-s)*1000).to_i}"
$stderr.puts "logtype:api\ttime:#{e.iso8601}\tmethod:#{method}\turi:#{call_uri}\treqtime:#{"%.3f" % (e-s)}"
JSON.parse(res.body)
end
end

0 comments on commit 45358a6

Please sign in to comment.