Sending errors to sentry from development
For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in development. Don't commit these changes and prefer to report to the staging environment. As other developers might be confused of these errors try to given them a proper message and delete them afterwards.
config.raven_dsn = 'your-dns'in
- Add development to existing environments in the
config.environments = ['development', 'staging', 'production'].
Gemfileif existing and
Raven.capture_message('Test from development') you can test your setting on console. Raising an exception will now report to sentry. You can see this in the log:
INFO -- sentry: ** [Raven] Sending event c49343eec8argefb8bcasd193103244a to Sentry