Skip to content

Commit

Permalink
#5 more logs and no version
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 13, 2018
1 parent b1578e1 commit 7008de9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions bin/zold-stress
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ STDOUT.sync = true

require 'slop'
require 'rainbow'
require 'concurrent'
require 'zold/log'
require 'zold/age'
require 'zold/wallet'
Expand Down Expand Up @@ -120,6 +121,15 @@ Available options:"
stats: stats, air: air, log: log, vlog: vlog, opts: opts
)

log.info("Zold version: #{Zold::VERSION}")
log.info("Time: #{Time.now.utc.iso8601}; CPUs: #{Concurrent.processor_count}")
log.info("Home directory: #{home}")
log.info("Ruby version: #{RUBY_VERSION}/#{RUBY_PLATFORM}")
log.info("Zold gem version: #{Zold::VERSION}")
log.info("Zold protocol version: #{Zold::PROTOCOL}")
log.info("Network ID: #{opts['network']}")
log.info("Rounds: #{opts['rounds']}, threads: #{opts['threads']}, pool: #{opts['pool']}, batch: #{opts['batch']}")

start = Time.now
round.update
round.prepare
Expand Down
2 changes: 1 addition & 1 deletion zold-stress.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
s.add_runtime_dependency 'backtrace', '0.3.0'
s.add_runtime_dependency 'parallelize', '0.4.1'
s.add_runtime_dependency 'zold', '0.16.22'
s.add_runtime_dependency 'zold'
s.add_development_dependency 'codecov', '0.1.13'
s.add_development_dependency 'minitest', '5.11.3'
s.add_development_dependency 'random-port', '0.3.0'
Expand Down

0 comments on commit 7008de9

Please sign in to comment.