Skip to content

Instantly share code, notes, and snippets.

@shime
Created April 10, 2012 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shime/2351650 to your computer and use it in GitHub Desktop.
Save shime/2351650 to your computer and use it in GitHub Desktop.
Testing flattening of params with airbrake
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