Permalink
Browse files

logging requests

  • Loading branch information...
1 parent 05b31a1 commit 2f72ffad928b939f931e8e7d6e0f1d3ecdc7d754 @rafaelss committed May 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/cielo/transaction_request.rb
@@ -20,7 +20,11 @@ def create
http.use_ssl = true
http.open_timeout = 10 * 1000
http.read_timeout = 40 * 1000
+ Cielo.logger.info(http)
+
response = http.request_post(Cielo.configuration.path, "mensagem=#{to_xml}")
+ Cielo.logger.info(response.body)
+
Transaction.parse(response.body, :single => true)
end
end

0 comments on commit 2f72ffa

Please sign in to comment.