Skip to content

Commit

Permalink
Printing response.body on failed invalidation requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kliment Mamykin committed Apr 17, 2011
1 parent fbb0eaa commit 0a171da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jammit/s3_uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def invalidate_cache(files)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
res = http.request(req)
log res.code == "201" ? 'Invalidation request succeeded' : "Failed #{res.code}"
log res.code == "201" ? 'Invalidation request succeeded' : "Failed #{res.code}. Body: #{res.body}"
end

def log(msg)
Expand Down

0 comments on commit 0a171da

Please sign in to comment.