lib/zold/commands/remote.rb in zold-0.12.1 vs lib/zold/commands/remote.rb in zold-0.13.0

- old
+ new

@@ -125,11 +125,11 @@ end def add(host, port, opts) if @remotes.exists?(host, port) raise "#{host}:#{port} already exists in the list" unless opts['force'] - @log.info("#{host}:#{port} already exists in the list") + @log.debug("#{host}:#{port} already exists in the list") else @remotes.add(host, port) @log.info("#{host}:#{port} added to the list, #{@remotes.all.count} total") end @log.info("There are #{@remotes.all.count} remote nodes in the list") @@ -139,11 +139,11 @@ if @remotes.exists?(host, port) @remotes.remove(host, port) @log.info("#{host}:#{port} removed from the list") else raise "#{host}:#{port} is not in the list" unless opts['force'] - @log.info("#{host}:#{port} is not in the list") + @log.debug("#{host}:#{port} is not in the list") end @log.info("There are #{@remotes.all.count} remote nodes in the list") end # Returns an array of Zold::Score @@ -207,11 +207,10 @@ capacity.each do |c| @remotes.error(c[:host], c[:port]) if c[:count] < max_capacity end total = @remotes.all.size if total.zero? - @log.debug("The list of remotes is #{Rainbow('empty').red}!") - @log.debug("Run 'zold remote add b1.zold.io` and then `zold update`") + @log.debug("The list of remotes is #{Rainbow('empty').red}, run 'zold reset'!") else @log.debug("There are #{total} known remotes") end end end