cryptum 0.0.418 → 0.0.420

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ac64167c106a6469cbbaf4d775c24ab6e56da7c33574708b31446fe874ec273
4
- data.tar.gz: 2d0f68679621b1cb2bc53e07940abf6ace43a68edb42bded3826f4e4bb5efa16
3
+ metadata.gz: 0de0ef35decfd99a72f1e435c044b45e7b8ce0b93a3e7476e2914c19a0354948
4
+ data.tar.gz: 02ae2e6d2abc89263cf1ce8bf78af67ab241288870ccef4b7b3f162c7c4c38c2
5
5
  SHA512:
6
- metadata.gz: 02bcf71d0444f58d14409b0d25e54c411442522c491389df720feb23006f5a45c0099796d2c438124164d209f9544c9b86664406aad8e4b6a765671ec69a5754
7
- data.tar.gz: a2ed0098da2c55cabd6060d0055790493795d0e8591a731a646f29cee42e37d5c91c12ff8cef95ac6fecb239fe49e998f154e79c897544943b64731b326bee6c
6
+ metadata.gz: 1baf97b4443d240253d26219930932e393e46874c7e75d73e3d09bca28ea22cf06ee0072d919aff5bd0b5b933157e4de40eaedba0fb6d67a42627fbecbdd1a21
7
+ data.tar.gz: 22191ddd6bdbed401119a275f477947976e78c14b187f05937276f5feb56444c08d8043956e26d1d1c7c1f90bf524ef9be2d4e024c1beac067a4960604a5eda7
data/lib/cryptum/log.rb CHANGED
@@ -43,8 +43,8 @@ module Cryptum
43
43
  when :debug
44
44
  logger.level = Logger::DEBUG
45
45
  when :error
46
- exit_gracefully = true
47
46
  logger.level = Logger::ERROR
47
+ exit_gracefully = true unless driver_name == 'cryptum-repl'
48
48
  puts "\nERROR: See #{log_file_path} for more details." if driver_name == 'cryptum-repl'
49
49
  when :fatal
50
50
  # This is reserved for the Cryptum::UI::Exit module
@@ -80,16 +80,16 @@ module Cryptum
80
80
  )
81
81
  end
82
82
  else
83
- log_event = ''
83
+ log_event = "driver: #{driver_name}"
84
84
  if event_history.respond_to?('order_book')
85
- log_event = "session: #{session}, "
85
+ log_event = ", session: #{session}, "
86
86
  log_event += "symbol: #{symbol}"
87
87
  end
88
88
 
89
89
  if msg.instance_of?(Interrupt)
90
- log_event += ' => CTRL+C Detected...Exiting Session.'
91
90
  logger.level = Logger::WARN
92
- exit_gracefully = true
91
+ log_event += ' => CTRL+C Detected...Exiting Session.'
92
+ exit_gracefully = true unless driver_name == 'cryptum-repl'
93
93
  else
94
94
  log_event += " => #{msg}"
95
95
  if msg.respond_to?('backtrace') && !msg.instance_of?(Errno::ECONNRESET)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.418'
4
+ VERSION = '0.0.420'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.418
4
+ version: 0.0.420
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.