Allow for other environments beside "development" and "test" to not have Airbrake notifications sent for them.

Wes's Avatar

Wes

01 Feb, 2012 04:28 AM via web

I have a custom development environment with a name other than "development" and I would like to have Airbrake notifications suppressed for this environment as well.

There doesn't appear to be a way to do this. A workaround is to set up the Airbrake gem to not be required in that environment via the Gemfile and then write wrapper code to check to make sure that the Airbrake gem is available.

But it seems like there should be a more direct way to do this.

  1. Support Staff 2 Posted by airbrakeben on 08 Feb, 2012 06:24 PM

    airbrakeben's Avatar

    Hi Wes -

    We're currently focused on an urgent site issue, if you feel that this is urgent and it needs attention immediately please reply to this ticket, or call (888) 479 8323.

    Otherwise a dev will be in touch next week.

  2. 3 Posted by Shawn Balestracci on 26 Feb, 2012 03:03 AM

    Shawn Balestracci's Avatar

    In config/initializers/airbrake.rb you can add:

    config.development_environments << 'custom_development_environment'

  3. Support Staff 4 Posted by airbrakeben on 26 Feb, 2012 06:57 AM

    airbrakeben's Avatar

    Thanks for posting Shawn. I didn't get the chance to go back to these older requests.

  4. airbrakeben closed this discussion on 26 Feb, 2012 06:57 AM.

  5. Wes re-opened this discussion on 28 Feb, 2012 05:35 PM

  6. 5 Posted by Wes on 28 Feb, 2012 05:35 PM

    Wes's Avatar

    Thanks guys.

    Would there be any way for me to do this with the Node.js plugin as well?

  7. Support Staff 6 Posted by airbrakeben on 03 Mar, 2012 09:36 PM

    airbrakeben's Avatar

    Hi Wes, I'm sure it's possible. I would create an issue / features request on the Github repro of the Node notifier.

    Ben

  8. airbrakeben closed this discussion on 03 Mar, 2012 09:36 PM.

Comments are currently closed for this discussion. You can start a new one.