lib/cryptum/ui.rb in cryptum-0.0.396 vs lib/cryptum/ui.rb in cryptum-0.0.397

- old
+ new

@@ -16,10 +16,14 @@ require 'cryptum/ui/ticker' # Initialize the UI 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 = '' + if event_history.respond_to?('order_book') + msg = "session: #{event_history.order_book[:path].split('/').first}, " + msg += "symbol: #{event_history.order_book[:symbol]}" + end msg += ' => Session Started.' Cryptum::Log.append(level: :info, msg: msg, which_self: self) # Initialize curses Screen Curses.init_screen