Module: Airbrake::Backtrace
- Defined in:
- lib/right_support/notifiers/airbrake.rb
Class Method Summary collapse
Class Method Details
.backtrace_decoder=(value) ⇒ Object
35 36 37 |
# File 'lib/right_support/notifiers/airbrake.rb', line 35 def self.backtrace_decoder=(value) @backtrace_decoder = value end |
.old_parse ⇒ Object
32 |
# File 'lib/right_support/notifiers/airbrake.rb', line 32 alias :old_parse :parse |
.parse(*args) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/right_support/notifiers/airbrake.rb', line 39 def self.parse(*args) if @backtrace_decoder error = args.first trace = error.backtrace || [] @backtrace_decoder.decode(trace).map do |frame| { file: frame.file, line: frame.line, function: frame.function } end else old_parse(*args) end end |