0

I've set up Bugsnag in development/production environment in Rails 4.

I'd love to test thing out in rails console.

Bugsnag.notify('test test test')

The config is following.

  Bugsnag.configure do |config|
    config.api_key = ENV['BUGSNAG_SECRET']
    config.notify_release_stages = ["production", "development"]
  end

Am I missing something important?

Toshi
  • 6,012
  • 8
  • 35
  • 58

1 Answers1

0

First, I would confirm you have installed bugsnag gem to your Gemfile: bundle add bugsnag

To correctly test notify, I would suggest trying something like this:

begin
  raise 'Something went wrong!'
rescue => exception
  Bugsnag.notify(exception)
end
rsokz
  • 156
  • 1
  • 9