Created
April 10, 2012 14:11
-
-
Save shime/2351650 to your computer and use it in GitHub Desktop.
Testing flattening of params with airbrake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'airbrake' | |
Airbrake.configure do |config| | |
config.api_key = '092f2e6780f7c9117353d28dbe8486a3' | |
config.logger = Logger.new STDOUT | |
end | |
params = { 'blah' => 'blah', 'deeper_level' => {'stuff' => 'stuff', 'array' => ['a', 'b', 'c'] } } | |
begin | |
raise | |
rescue => ex | |
Airbrake.notify(:error_class => ex.class, | |
:error_message => "just testing flattening", | |
:parameters => params) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment