mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 06:21:23 +00:00
Report ActionCable errors to Sentry
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user