lib/honeybadger/plugins/sidekiq.rb in honeybadger-2.7.2 vs lib/honeybadger/plugins/sidekiq.rb in honeybadger-3.0.0.beta1

- old
+ new

@@ -1,7 +1,7 @@ require 'honeybadger/plugin' -require 'honeybadger' +require 'honeybadger/ruby' module Honeybadger module Plugins module Sidekiq class Middleware @@ -25,10 +25,10 @@ ::Sidekiq.configure_server do |sidekiq| sidekiq.error_handlers << lambda {|ex, params| return if params['retry'.freeze] && params['retry_count'.freeze].to_i < config[:'sidekiq.attempt_threshold'].to_i opts = {parameters: params} opts[:component] = params['wrapped'.freeze] || params['class'.freeze] if config[:'sidekiq.use_component'] - Honeybadger.notify_or_ignore(ex, opts) + Honeybadger.notify(ex, opts) } end end end end