Use `Airbrake#notify_or_ignore`

This commit is contained in:
Ezekiel Templin 2012-09-06 18:49:58 +01:00
parent 3c696859e8
commit 22381aa13b
3 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
- Upgrade Twitter Bootstrap to 2.1.0
- Rescue more Exceptions
- Change Job ID to be Hex, rather than Base64, for HTTP safety
- Use `Airbrake#notify_or_ignore`
2.2.1
-----------

View File

@ -13,7 +13,7 @@ module Sidekiq
private
def send_to_airbrake(msg, ex)
::Airbrake.notify(ex, :parameters => msg)
::Airbrake.notify_or_ignore(ex, :parameters => msg)
end
def send_to_exceptional(msg, ex)

View File

@ -49,7 +49,7 @@ class TestExceptionHandler < MiniTest::Unit::TestCase
end
it "notifies Airbrake" do
::Airbrake.expect(:notify,nil,[TEST_EXCEPTION,:parameters => { :a => 1 }])
::Airbrake.expect(:notify_or_ignore,nil,[TEST_EXCEPTION,:parameters => { :a => 1 }])
Component.new.invoke_exception(:a => 1)
::Airbrake.verify
end