lib/zold/commands/fetch.rb in zold-0.9.9 vs lib/zold/commands/fetch.rb in zold-0.9.10

- old
+ new

@@ -70,11 +70,11 @@ total += 1 else @remotes.error(r[:host], r[:port]) end end - @log.debug("#{total} copies fetched, there are #{cps.all.count} available locally") + @log.debug("#{total} copies of #{id} fetched, there are #{cps.all.count} available locally") end def fetch_one(id, r, cps, opts) address = "#{r[:host]}:#{r[:port]}".downcase if opts['ignore-node'].include?(address) @@ -82,10 +82,10 @@ return false end uri = URI("#{r[:home]}wallet/#{id}") res = Http.new(uri).get if res.code == '404' - @log.info("#{address} wallet #{Rainbow('not found').red}") + @log.info("#{address} wallet #{id} #{Rainbow('not found').red}") return false end unless res.code == '200' @log.error("#{address} #{Rainbow(res.code).red}/#{res.message} at #{uri}") return false