Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecation messages of ConsoleEvents::EXCEPTION when running console commands. #95

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

Closed
AivarasZelba opened this issue Nov 22, 2017 · 1 comment

Comments

@AivarasZelba
Copy link

AivarasZelba commented Nov 22, 2017

Sentry still using console.exception event and it's deprecated since Symfony 3.3 Use console.error event instead.
This is a problem when running PHPUnit tests which runs console commands.

@Jean85
Copy link
Contributor

Jean85 commented Nov 22, 2017

Hello there and thanks for reporting. This will not be fixed in the 1.0 release of the bundle, because it would mean doing some really dirty tricks or dropping support for SF <3.3.

This is instead already resolved in #90 that will become the 2.0 release; I also discourage you to enable this bundle in the test environment, since it will also change the error handler, which is already in use by other packages like Symfony's deprecation handler. Use something like this in your kernel:

        if (in_array($this->getEnvironment(), ['staging', 'prod'], true)) {
            $bundles[] = new Sentry\SentryBundle\SentryBundle();
        }

I'm closing this as already solved, but feel free to reply further if it's not a solution for you.

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

2 participants