lukeyouell / craft-sentry

Error tracking that helps developers monitor and fix crashes in real time. Iterate continuously. Boost efficiency. Improve user experience.
https://sentry.io
MIT License
17 stars 9 forks source link

Dev mode toggle #11

Closed missmatsuko closed 6 years ago

missmatsuko commented 6 years ago

I saw this in the README roadmap and would love to see it implemented.

We tried using Overriding Plugin Settings to disable Sentry errors on dev. However, the settings seem to be cached in the database anyways so we are currently manually disabling the Sentry plugin after every pull-down from production.

lukeyouell commented 6 years ago

I've added a new config setting that should solve this.

If you add 'enabled' => false, in your sentry.php config file the plugin won't report errors to Sentry. This can be set per-environment.

lukeyouell commented 6 years ago

(this change is available in the latest release)