Sha256: 945efbe9136215a464f4bb562493b12d40a813cc68c666a53d103e99fd77829d
Contents?: true
Size: 587 Bytes
Versions: 9
Compression:
Stored size: 587 Bytes
Contents
module Opbeat module Rails module Middleware module DebugExceptionsCatcher def self.included(base) base.send(:alias_method_chain, :render_exception, :raven) end def render_exception_with_raven(env, exception) begin evt = Opbeat::Event.capture_rack_exception(exception, env) Opbeat.send(evt) if evt rescue ::Rails::logger.debug "Error capturing or sending exception #{$!}" end render_exception_without_raven(env, exception) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems