silverstripe / silverstripe-raygun

Raygun.com integration for PHP
BSD 3-Clause "New" or "Revised" License
6 stars 23 forks source link

ENH: Provide a way to conditionally disable the raygun handler. #65

Closed GuySartorelli closed 2 years ago

GuySartorelli commented 2 years ago

There are situations where it may be useful to have the SS_RAYGUN_APP_KEY environment variable set without automatically sending all exceptions to Raygun.

In particular, we have a use case where we don't want errors sent to raygun in our test and QA environments usually, but we want to be able to run a BuildTask to trigger an exception that does get sent to raygun in those environments as a quick test that changes we have made do what we expect them to in regards to error monitoring.

GuySartorelli commented 2 years ago

Commenting in case it's not clear: Requested changes have been made.

michalkleiner commented 2 years ago

@GuySartorelli please rebase on master as I merged the other PR, then I can merge it.

GuySartorelli commented 2 years ago

@michalkleiner I've rebased on master.