Skip to content

Commit 74d6bd6

Browse files
authored
Merge pull request #740 from Shopify/amomchilov/shush-backtrace_locations
Shush the `backtrace_locations`, too
2 parents 1813207 + 4af3707 commit 74d6bd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/spring/application.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def shush_backtraces
320320
if $!
321321
lib = File.expand_path("..", __FILE__)
322322
$!.backtrace.reject! { |line| line.start_with?(lib) } unless $!.backtrace.frozen?
323+
$!.backtrace_locations.reject! { |line| line.path&.start_with?(lib) } unless $!.backtrace_locations.frozen?
323324
end
324325
end
325326
end
@@ -331,6 +332,7 @@ def shush_backtraces
331332
if $!
332333
lib = File.expand_path("..", __FILE__)
333334
$!.backtrace.reject! { |line| line.start_with?(lib) } unless $!.backtrace.frozen?
335+
$!.backtrace_locations.reject! { |line| line.path&.start_with?(lib) } unless $!.backtrace_locations.frozen?
334336
end
335337
end
336338
end

0 commit comments

Comments
 (0)