Permalink
Browse files

log even if error

  • Loading branch information...
sorah committed Oct 31, 2015
1 parent c1d9d50 commit e8cc61364e8e90758aac56b3f896d957a4c7a262
Showing with 7 additions and 1 deletion.
  1. +7 −1 5f/webapp/ruby/app.rb
View
@@ -167,8 +167,14 @@ def fetch_http(headers, params, call_uri, conf)
s = Time.now
res = @client.request(call_uri, req)
res.value
e = Time.now
begin
res.value
rescue Exception => e
$stderr.puts "[API CALL][HTTP][ERROR] #{method} #{call_uri} (#{"%.2f" % (e-s)}s, #{e.inspect})"
raise
end
$stderr.puts "[API CALL][HTTP] #{method} #{call_uri} (#{"%.2f" % (e-s)}s)"
JSON.parse(res.body)
end

0 comments on commit e8cc613

Please sign in to comment.