Skip to content

[FrameworkBundle] Register AddErrorDetailsStampListener from the Messenger component as event subscriber #38941

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

Conversation

jeroennoten
Copy link
Contributor

@jeroennoten jeroennoten commented Nov 1, 2020

Q A
Branch? 5.x
Bug fix? yes
New feature? no
Deprecations? no
License MIT

This is a fix for a bug in version 5.2-BETA3.

In #32904, adding the error details to a failed message in the Messenger component was moved to a separate listener. However, this listener is not registered in the FrameworkBundle, resulting in no error details stored at all (when using the Symfony skeleton). This PR adds that missing registration.

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please confirm that ErrorDetailsStamp is serialized/deserialized correctly after bin/console messenger:failed:show <id> -vvv?

Thanks!

@jeroennoten
Copy link
Contributor Author

jeroennoten commented Nov 1, 2020

Could you please confirm that ErrorDetailsStamp is serialized/deserialized correctly after bin/console messenger:failed:show <id> -vvv?

Yes, I tested this by installing the skeleton (dev-5.x), configuring Messenger, adding these lines in the vendor directory and removing the cache directory. After doing that, the errors of failed messages were indeed shown when running messenger:failure:show <id> -vv.

@nicolas-grekas nicolas-grekas added this to the 5.2 milestone Nov 2, 2020
@jderusse
Copy link
Member

jderusse commented Nov 3, 2020

Thank you @jeroennoten.

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

Successfully merging this pull request may close these issues.

5 participants