Permalink
Browse files

Logging config updated.

  • Loading branch information...
1 parent b36c11c commit fd45cebcdfcae79715e5595d187dbddd3428dc0e @leanucci leanucci committed Mar 21, 2011
Showing with 9 additions and 5 deletions.
  1. +9 −1 lib/bravo.rb
  2. +0 −4 spec/spec_helper.rb
View
@@ -23,5 +23,13 @@ def auth_hash
{"Token" => Bravo::TOKEN, "Sign" => Bravo::SIGN, "Cuit" => Bravo.cuit}
end
- Savon::Request.log = false unless (Bravo.verbose == "true") || (ENV["VERBOSE"] == true)
+ def log?
+ Bravo.verbose || ENV["VERBOSE"]
+ end
+
+end
+
+Savon.configure do |config|
+ config.log = Bravo.log?
+ config.log_level = :debug
end
View
@@ -3,10 +3,6 @@
require 'rspec'
require 'ruby-debug'
-class SpecHelper
- include Savon::Logger
-end
-
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

0 comments on commit fd45ceb

Please sign in to comment.