Use `Airbrake#notify_or_ignore`
This commit is contained in:
parent
3c696859e8
commit
22381aa13b
|
@ -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
|
||||
-----------
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue