rollbar-gem: No error logs in development

Hi guys,

I’m working on a project and we want to report our errors in production via Rollbar, so we are utilizing the rollbar-gem. In production, everything works as expected.

In development, we want to disable reporting to Rollbar. We can achieve this by adding

config.enabled = false unless Rails.env.production?

in config/initializers/rollbar.rb, however, doing so results in destroying all error logging in development, i.e. I don’t get any stack traces, code fail locations, etc., neither to console, nor to log/development.log, nor displayed on the page. This makes bugfixing a real pain in the ass.

Is this a known issue? Did I misconfigure something?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

@waltjones Yes thanks. So far, it seems to be what I need.