aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/process/logging.rb
blob: 72b1a080d1315b08d43c3751c02429bf72ff55fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
require 'action_cable/server'
require 'eventmachine'
require 'celluloid'

EM.error_handler do |e|
  puts "Error raised inside the event loop: #{e.message}"
  puts e.backtrace.join("\n")
end

Celluloid.logger = ActionCable.server.logger