Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/raven/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def add_exception_interface(evt, exc)
evt.interface(:exception) do |exc_int|
exceptions = [exc]
context = Set.new [exc.object_id]
backtraces = Set.new

while exc.respond_to?(:cause) && exc.cause
exc = exc.cause
Expand All @@ -145,7 +146,8 @@ def add_exception_interface(evt, exc)
int.module = e.class.to_s.split('::')[0...-1].join('::')

int.stacktrace =
if e.backtrace
if e.backtrace && !backtraces.include?(e.backtrace.object_id)
backtraces << e.backtrace.object_id
StacktraceInterface.new do |stacktrace|
stacktrace_interface_from(stacktrace, evt, e.backtrace)
end
Expand Down