Skip to content

Commit

Permalink
log at appropriate levels
Browse files Browse the repository at this point in the history
  • Loading branch information
vangberg committed Feb 16, 2011
1 parent d01591a commit 21ee1b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/httpi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def with_adapter(method, request, adapter)
adapter ||= Adapter.use
adapter, adapter_class = Adapter.find adapter

HTTPI.log "HTTPI executes HTTP #{method.to_s.upcase} using the #{adapter} adapter"
HTTPI.logger.debug "HTTPI executes HTTP #{method.to_s.upcase} using the #{adapter} adapter"
yield adapter_class.new(request)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/httpi/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def self.load_adapter(adapter)
require adapters[adapter][:require]
[adapter, adapters[adapter][:class]]
rescue LoadError
HTTPI.log "HTTPI tried to use the #{adapter} adapter, but was unable to find the library in the LOAD_PATH.",
HTTPI.logger.warn "HTTPI tried to use the #{adapter} adapter, but was unable to find the library in the LOAD_PATH.",
"Falling back to using the #{FALLBACK} adapter now."

require adapters[FALLBACK][:require]
Expand Down

0 comments on commit 21ee1b2

Please sign in to comment.