aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/process/logging.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actioncable/lib/action_cable/process/logging.rb')
-rw-r--r--actioncable/lib/action_cable/process/logging.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actioncable/lib/action_cable/process/logging.rb b/actioncable/lib/action_cable/process/logging.rb
new file mode 100644
index 0000000000..dce637b3ca
--- /dev/null
+++ b/actioncable/lib/action_cable/process/logging.rb
@@ -0,0 +1,7 @@
+require 'action_cable/server'
+require 'eventmachine'
+
+EM.error_handler do |e|
+ puts "Error raised inside the event loop: #{e.message}"
+ puts e.backtrace.join("\n")
+end