mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #17639 from gsamokovarov/faster-exception-wrapper-traces
Don't double check trace origin in ExceptionWrapper#traces
This commit is contained in:
commit
7830bb0d9d
1 changed files with 6 additions and 2 deletions
|
@ -65,8 +65,12 @@ module ActionDispatch
|
|||
full_trace.each_with_index do |trace, idx|
|
||||
trace_with_id = { id: idx, trace: trace }
|
||||
|
||||
appplication_trace_with_ids << trace_with_id if application_trace.include?(trace)
|
||||
framework_trace_with_ids << trace_with_id if framework_trace.include?(trace)
|
||||
if application_trace.include?(trace)
|
||||
appplication_trace_with_ids << trace_with_id
|
||||
else
|
||||
framework_trace_with_ids << trace_with_id
|
||||
end
|
||||
|
||||
full_trace_with_ids << trace_with_id
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue