Sha256: 9b82d5e9f4e09907b2666974b7dfaed5ffd0deec9cb375f1c4aeaeafc4d35f37
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
module Opbeat module Rails module Middleware module DebugExceptionsCatcher def self.included(base) base.send(:alias_method_chain, :render_exception, :opbeat) end def render_exception_with_opbeat(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_opbeat(env, exception) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems