question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to disable sentry on development environment?

See original GitHub issue

Hi, I am using raven 3.6.0 for production and test environments however I don’t need it sending exceptions and messages from my local development environment, how can I disable it and prevent this message from appearing on my shell or every time I call capture*:

Raven is not configured (logging is disabled). Please see the documentation for more information.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

14reactions
dcramercommented, Dec 12, 2014

If you dont configure it it wont be enabled. That is, dont set the DSN value.

If you want to change logging, you can do that via your logging configuration.

5reactions
cabellocommented, Aug 24, 2015

Something like:

if DEBUG:
    LOGGING['loggers']['raven'] = {
        'handlers': ['null'],
        'level': 'ERROR',
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable sentry on dev environment ? · Issue #76 - GitHub
I don't know if there's another way to do it, but I set an empty parameter in dev environment. #config.yml sentry: dsn: "%sentry_dsn%" ......
Read more >
Disable Sentry for development environment
How do I disable Sentry for only development environment? String dns = null; Sentry. init(dns);
Read more >
How to turn off Sentry in development and test environment?
How can I configure Sentry to only log the production and staging environments? (not development nor test environments).
Read more >
Using Sentry.io for Local Development | Firefox Ecosystem ...
To enable sentry for local development, simply set these environment variables in your root-level .env file (that you may need to create) to...
Read more >
Environment | Sentry Developer Documentation
This guide steps you through configuring a local development environment for ... remove all existing Docker containers, all Docker volumes, and ~/.sentry/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found