diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb index 0ff5442f..8415947f 100644 --- a/app/channels/application_cable/connection.rb +++ b/app/channels/application_cable/connection.rb @@ -1,4 +1,10 @@ module ApplicationCable class Connection < ActionCable::Connection::Base + rescue_from StandardError, with: :report_error + + private + def report_error(e) + Sentry.capture_exception(e) + end end end