lib/zold/commands/push.rb in zold-0.16.18 vs lib/zold/commands/push.rb in zold-0.16.19

- old
+ new

@@ -102,11 +102,13 @@ json = JsonPage.new(response.body, uri).to_hash score = Score.parse_json(json['score']) r.assert_valid_score(score) r.assert_score_ownership(score) r.assert_score_strength(score) unless opts['ignore-score-weakness'] - @log.info("#{r} accepted #{wallet.mnemo} in #{Age.new(start, limit: 4)}: \ + if @log.info? + @log.info("#{r} accepted #{wallet.mnemo} in #{Age.new(start, limit: 4)}: \ #{Rainbow(score.value).green} (#{json['version']})") + end score.value end end end end