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

Console Exceptions being logged twice #104

Closed
artureiji opened this issue Jan 30, 2018 · 3 comments
Closed

Console Exceptions being logged twice #104

artureiji opened this issue Jan 30, 2018 · 3 comments

Comments

@artureiji
Copy link

Hello, this month my team received a notice that our logging limit was exceeded, and investigating it we found out some errors were being sent to sentry twice.

After a fast test it seems that the Sentry ExceptionListener is listening to both ConsoleErrorEvent and ConsoleExceptionEvent, that are dispatched by Symfony\Component\Console\Application for a single exception that occurs.

sentry-symfony: 2.0
sentry: 1.8.2
symfony: 3.4.4

@Jean85
Copy link
Collaborator

Jean85 commented Jan 31, 2018

Thanks for reporting this. I attached the listener to both events because I wanted to have cross compatibility for Symfony 3 and 4, but this is leading to this bug.

I'll try to find an other solution.

@Jean85
Copy link
Collaborator

Jean85 commented Jan 31, 2018

Fix released as 2.0.1!

@Jean85 Jean85 closed this as completed Jan 31, 2018
@xthiago
Copy link

xthiago commented Jan 31, 2018

Thank you @Jean85

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

No branches or pull requests

3 participants