summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeer Friedman <neerfri@gmail.com>2015-03-02 16:51:11 +0200
committerNeer Friedman <neerfri@gmail.com>2015-03-03 08:33:41 +0200
commit10995e00638e4c54b7c54f063717ad167eb937bd (patch)
tree6588d0c59f03c5348693f7427cf650e772609449
parentd8f61693cc89476c1ee3cc01ccf03c0908531a4d (diff)
downloadbundler-10995e00638e4c54b7c54f063717ad167eb937bd.tar.gz
add debug log for api request limit
-rw-r--r--lib/bundler/source/rubygems.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index 9aa7019e4c..751777dc4a 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -302,6 +302,8 @@ module Bundler
# the gemspecs of those gems, if the non-api sites contain more than
# about 100 gems, we just treat all sites as non-api for speed.
allow_api = idx.size < API_REQUEST_LIMIT && dependency_names.size < API_REQUEST_LIMIT
+ Bundler.ui.debug "Need to query more than #{API_REQUEST_LIMIT} gems." \
+ " Downloading full index instead..." unless allow_api
if allow_api
api_fetchers.each do |f|