Skip to content

Commit

Permalink
Use Airbrake#notify_or_ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ezkl committed Sep 6, 2012
1 parent 3c69685 commit 22381aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes.md
Expand Up @@ -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
-----------
Expand Down
2 changes: 1 addition & 1 deletion lib/sidekiq/exception_handler.rb
Expand Up @@ -13,7 +13,7 @@ def handle_exception(ex, msg)
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)
Expand Down
2 changes: 1 addition & 1 deletion test/test_exception_handler.rb
Expand Up @@ -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
Expand Down

0 comments on commit 22381aa

Please sign in to comment.