lib/cryptum/ui.rb in cryptum-0.0.388 vs lib/cryptum/ui.rb in cryptum-0.0.389
- old
+ new
@@ -14,10 +14,15 @@
require 'cryptum/ui/signal_engine'
require 'cryptum/ui/terminal_window'
require 'cryptum/ui/ticker'
# Initialize the UI
- public_class_method def self.init
+ public_class_method def self.init(opts = {})
+ event_history = opts[:event_history]
+ msg = event_history.order_book[:path] if event_history.respond_to?('order_book')
+ msg += ' => Session Started.'
+ Cryptum::Log.append(level: :info, msg: msg, which_self: self)
+
# Initialize curses Screen
Curses.init_screen
# Ensure the cursor is invisible
Curses.curs_set(0)