Skip to content

Commit

Permalink
Merge branch 'seuros-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
shifi committed May 22, 2015
2 parents 92fc172 + 1caf061 commit a05fbc3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/airbrake/sidekiq.rb
@@ -1,9 +1,8 @@
gem 'sidekiq', '~> 3.0'
require 'sidekiq'

if ::Sidekiq::VERSION >= '3'
::Sidekiq.configure_server do |config|
config.error_handlers << lambda do |exception, context|
Airbrake.notify_or_ignore(exception, :parameters => context)
end
Sidekiq.configure_server do |config|
config.error_handlers << lambda do |exception, context|
Airbrake.notify_or_ignore(exception, :parameters => context)
end
end
end

0 comments on commit a05fbc3

Please sign in to comment.