Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

logging requests

  • Loading branch information...
commit 2f72ffad928b939f931e8e7d6e0f1d3ecdc7d754 1 parent 05b31a1
@rafaelss authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/cielo/transaction_request.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.