Skip to content

Commit 5247fdc

Browse files
smaximovCawllec
authored andcommitted
Fix shoryuken integration (#416)
* Use notify instead of deleted auto_notify for shoryuken integration * Don't crash when project_root is Pathname
1 parent 295b326 commit 5247fdc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/bugsnag/integrations/shoryuken.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def call(_, queue, _, body)
2626
yield
2727
rescue Exception => ex
2828
unless [Interrupt, SystemExit, SignalException].include?(ex.class)
29-
Bugsnag.auto_notify(ex, true) do |report|
29+
Bugsnag.notify(ex, true) do |report|
3030
report.severity = "error"
3131
report.severity_reason = {
3232
:type => Bugsnag::Report::UNHANDLED_EXCEPTION_MIDDLEWARE,
@@ -46,4 +46,4 @@ def call(_, queue, _, body)
4646
config.server_middleware do |chain|
4747
chain.add ::Bugsnag::Shoryuken
4848
end
49-
end
49+
end

lib/bugsnag/stacktrace.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def initialize(backtrace, configuration)
4242

4343
# Clean up the file path in the stacktrace
4444
if defined?(@configuration.project_root) && @configuration.project_root.to_s != ''
45-
trace_hash[:inProject] = true if file.start_with?(@configuration.project_root)
45+
trace_hash[:inProject] = true if file.start_with?(@configuration.project_root.to_s)
4646
file.sub!(/#{@configuration.project_root}\//, "")
4747
trace_hash.delete(:inProject) if file.start_with?(VENDOR_PATH)
4848
end

0 commit comments

Comments
 (0)