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 +4 -4
- data/lib/cryptum/log.rb +5 -5
- data/lib/cryptum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0de0ef35decfd99a72f1e435c044b45e7b8ce0b93a3e7476e2914c19a0354948
|
4
|
+
data.tar.gz: 02ae2e6d2abc89263cf1ce8bf78af67ab241288870ccef4b7b3f162c7c4c38c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
data/lib/cryptum/version.rb
CHANGED