mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add a process logging file that the config.ru file can require to configure EM and Celluloid logging
This commit is contained in:
parent
e584f49e86
commit
0e7175d1e9
1 changed files with 6 additions and 0 deletions
6
lib/action_cable/process/logging.rb
Normal file
6
lib/action_cable/process/logging.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
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
|
Loading…
Reference in a new issue