Permalink
Browse files

LTSV api call log

  • Loading branch information...
mirakui committed Oct 31, 2015
1 parent 2c58d42 commit 382d8a7a1ba9c6bfc126898f187062ba7e5f690a
Showing with 1 addition and 1 deletion.
  1. +1 −1 5f/webapp/ruby/app.rb
View
@@ -198,7 +198,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 "[API CALL][HTTP] #{method} #{call_uri} (#{"%.2f" % (e-s)}s)"
$stderr.puts "logtype:api\tmethod:#{method}\turi:#{call_uri}\treqtime:#{((e-s)*1000).to_i}"
JSON.parse(res.body)
end
end

0 comments on commit 382d8a7

Please sign in to comment.