Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the parameter for enable or disable listen of exception. #92

Closed
ZhukV opened this issue Nov 9, 2017 · 3 comments
Closed

Add the parameter for enable or disable listen of exception. #92

ZhukV opened this issue Nov 9, 2017 · 3 comments

Comments

@ZhukV
Copy link

ZhukV commented Nov 9, 2017

In many cases, we should not send the error on development node.

Maybe add the parameter for control enable or disable listen to the exception?

sentry:
    enable: "!%kernel.debug%"
@Jean85
Copy link
Contributor

Jean85 commented Nov 9, 2017

That's not always true. Sentry has the possibility to store the environment of the errors, so it can be used in development (or staging or whatever) too.

To disable error reporting, you can either include the bundle only in the prod environment, or set the DSN in the config as null.

(this is a duplicate of #76 #46 #38, closing for this reason)

@Jean85 Jean85 closed this as completed Nov 9, 2017
@aonamrata
Copy link

This should have been added to sentry docs. I was looking to do this in raven for node js. setting the DNS to null works.

@Jean85
Copy link
Contributor

Jean85 commented Nov 2, 2018

That is already stated in the readme: https://github.com/getsentry/sentry-symfony#step-3-configure-the-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants