Skip to content

Commit

Permalink
Removed annoying warning messages when an item isn't found.
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder committed Feb 19, 2013
1 parent 60e4be8 commit bf1787a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/awsbase/errors.rb
Expand Up @@ -201,8 +201,8 @@ def check(request, options={}) #:nodoc:
redirect_detected = true
else
# no, it's an error ...
@aws.logger.warn("##### #{@aws.class.name} returned an error: #{response.code} #{response.message}\n#{response.body} #####")
@aws.logger.warn("##### #{@aws.class.name} request: #{request_text_data} ####")
@aws.logger.debug("##### #{@aws.class.name} returned an error: #{response.code} #{response.message}\n#{response.body} #####")
@aws.logger.debug("##### #{@aws.class.name} request: #{request_text_data} ####")
end
# Check response body: if it is an Amazon XML document or not:
if redirect_detected || (response.body && response.body[/<\?xml/]) # ... it is a xml document
Expand Down

0 comments on commit bf1787a

Please sign in to comment.